/* ===================================
   GLOBAL
=================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #0B0F19;
    color: white;
    font-family: Segoe UI, sans-serif;
    line-height: 1.6;
}

/* ===================================
   NAVBAR
=================================== */

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 20px 80px;

    position: fixed;
    top: 0;
    left: 0;

    width: 100%;

    background: rgba(11, 15, 25, .9);

    backdrop-filter: blur(10px);

    border-bottom: 1px solid rgba(255, 255, 255, .1);

    z-index: 1000;
}

.logo {
    font-size: 1.2rem;
    font-weight: bold;
}

nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
}

nav a {
    color: white;
    text-decoration: none;
    transition: .3s;
}

nav a:hover {
    color: #60A5FA;
}

/* ===================================
   SECTIONS
=================================== */

section {
    padding: 100px 80px;

    opacity: 0;

    transform: translateY(30px);

    transition: 1s;
}

section.show {
    opacity: 1;
    transform: translateY(0);
}

section h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
}

/* ===================================
   HERO
=================================== */

#hero {
    height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;
}

.profile-pic {
    width: 180px;
    height: 180px;

    border-radius: 50%;

    object-fit: cover;

    margin-bottom: 30px;

    border: 4px solid #3B82F6;
}

#hero h1 {

    font-size: 5rem;

    background:
        linear-gradient(90deg,
            #60A5FA,
            #A78BFA);

    -webkit-background-clip: text;

    color: transparent;
}

#hero h2 {
    color: #3B82F6;
    margin-top: 20px;
}

#hero p {
    margin-top: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    margin-top: 20px;
}

.btn {
    display: inline-block;

    margin: 10px;

    padding: 12px 25px;

    background: #3B82F6;

    color: white;

    text-decoration: none;

    border-radius: 8px;

    transition: .3s;
}

.btn:hover {
    transform: translateY(-3px);
}

/* ===================================
   IMPACT SECTION
=================================== */

#impact {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.stat-card {

    background: rgba(255, 255, 255, 0.05);

    backdrop-filter: blur(15px);

    border: 1px solid rgba(255, 255, 255, 0.1);

    border-radius: 15px;

    padding: 30px;

    text-align: center;

    width: 220px;

    transition: .4s;
}

.stat-card:hover {
    transform: translateY(-8px);
}

.stat-card h3 {
    color: #60A5FA;
    font-size: 2rem;
}

/* ===================================
   PROJECTS
=================================== */

.project-card {

    background: rgba(255, 255, 255, 0.05);

    backdrop-filter: blur(15px);

    border: 1px solid rgba(255, 255, 255, 0.1);

    border-radius: 15px;

    padding: 30px;

    margin-top: 25px;

    transition: all .4s ease;
}

.project-card:hover {

    transform: translateY(-8px);

    box-shadow:
        0 10px 30px rgba(59, 130, 246, .2);
}

.project-card h3 {

    color: #60A5FA;

    margin-bottom: 15px;
}

.project-card p {

    margin-bottom: 15px;

    color: #D1D5DB;
}

.project-card ul {

    padding-left: 20px;
}

.project-card li {

    margin-bottom: 10px;

    line-height: 1.7;
}

.project-image {

    width: 100%;

    border-radius: 10px;

    margin-bottom: 20px;
}

/* ===================================
   EXPERIENCE
=================================== */

.timeline {
    margin-top: 40px;
}

.timeline-item {

    background: rgba(255, 255, 255, 0.05);

    backdrop-filter: blur(15px);

    border: 1px solid rgba(255, 255, 255, 0.1);

    border-left: 4px solid #3B82F6;

    border-radius: 15px;

    padding: 25px;

    margin-bottom: 25px;

    transition: .4s;
}

.timeline-item:hover {
    transform: translateY(-8px);
}

.timeline-item h3 {
    color: #60A5FA;
}

.timeline-item h4 {
    margin-top: 8px;
}

.timeline-item span {
    display: block;
    margin-top: 10px;
    color: #9CA3AF;
    font-size: .9rem;
}

.timeline-item ul {
    margin-top: 15px;
    padding-left: 20px;
}

.timeline-item li {
    margin-bottom: 10px;
}

/* ===================================
   SKILLS
=================================== */

.skills-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(220px, 1fr));

    gap: 20px;

    margin-top: 30px;
}

.skills-grid div {

    background: rgba(255, 255, 255, 0.05);

    backdrop-filter: blur(15px);

    border: 1px solid rgba(255, 255, 255, 0.1);

    padding: 20px;

    text-align: center;

    border-radius: 12px;

    transition: .3s;
}

.skills-grid div:hover {

    transform: translateY(-5px);

    border-color: #60A5FA;
}

/* ===================================
   CONTACT
=================================== */

form {

    display: flex;

    flex-direction: column;

    gap: 15px;

    max-width: 700px;
}

input,
textarea {

    padding: 15px;

    border: none;

    border-radius: 10px;

    background: #111827;

    color: white;
}

textarea {
    min-height: 150px;
}

button {

    padding: 15px;

    border: none;

    border-radius: 10px;

    background: #3B82F6;

    color: white;

    cursor: pointer;
}

.contact-info {

    margin-top: 30px;
}

.contact-info p {

    margin-bottom: 10px;
}

/* ===================================
   SOCIAL LINKS
=================================== */

.social-links {

    text-align: center;

    padding: 30px;
}

.social-links a {

    color: #60A5FA;

    text-decoration: none;

    margin: 0 15px;
}

/* ===================================
   BACKGROUND EFFECT
=================================== */

.bg-animation {

    position: fixed;

    width: 500px;
    height: 500px;

    background: #2563eb;

    opacity: .08;

    filter: blur(180px);

    border-radius: 50%;

    top: -100px;
    right: -100px;

    z-index: -1;
}

/* ===================================
   MOBILE
=================================== */

@media(max-width:768px) {

    nav {
        padding: 20px;
        flex-direction: column;
        gap: 15px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    section {
        padding: 80px 25px;
    }

    #hero {

        padding-top: 160px;
    }

    .profile-pic {

        margin-top: 30px;
    }

    #hero h1 {
        font-size: 3rem;
    }

    #impact {
        flex-direction: column;
        align-items: center;
    }

    .stat-card {
        width: 100%;
        max-width: 350px;
    }
}

.project-layout {

    display: flex;

    gap: 30px;

    align-items: flex-start;
}

.project-image-section {

    flex: 0 0 50%;
}

.project-content {

    flex: 0 0 40%;
}

.project-image {

    width: 100%;

    height: auto;

    border-radius: 12px;

    display: block;
}

@media(max-width:768px) {

    .project-layout {

        flex-direction: column;
    }

    .project-image-section,
    .project-content {

        flex: 100%;
    }
}

/* ===================================
   SERVICES
=================================== */

.services-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(320px, 1fr));

    gap: 25px;

    margin-top: 40px;
}

.service-card {

    background: rgba(255, 255, 255, 0.05);

    backdrop-filter: blur(15px);

    border: 1px solid rgba(255, 255, 255, 0.1);

    border-radius: 15px;

    padding: 30px;

    transition: all .4s ease;
}

.service-card:hover {

    transform: translateY(-8px);

    box-shadow:
        0 10px 30px rgba(59, 130, 246, .2);

    border-color: #60A5FA;
}

.service-icon {

    font-size: 2rem;

    margin-bottom: 20px;
}

.service-card h3 {

    color: #60A5FA;

    margin-bottom: 15px;
}

.service-card p {

    color: #D1D5DB;

    line-height: 1.7;
}

/* ===================================
   TECHNOLOGY STACK
=================================== */

#tech-stack {

    overflow: hidden;
}

.tech-slider {

    width: 100%;

    overflow: hidden;

    position: relative;

    margin-top: 40px;
}

.tech-track {

    display: flex;

    width: max-content;

    animation: scrollTech 35s linear infinite;
}

.tech-track span {

    background: rgba(255, 255, 255, 0.05);

    backdrop-filter: blur(15px);

    border: 1px solid rgba(255, 255, 255, 0.1);

    border-radius: 50px;

    padding: 15px 25px;

    margin-right: 20px;

    color: #60A5FA;

    font-weight: 600;

    white-space: nowrap;

    transition: .3s;
}

.tech-track span:hover {

    border-color: #60A5FA;

    transform: translateY(-3px);
}

.tech-track:hover {

    animation-play-state: paused;
}



/* ===================================
   CONTACT STRIP
=================================== */

.contact-strip {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(220px, 1fr));

    gap: 20px;

    margin-top: 40px;
}

.contact-card {

    background: rgba(255, 255, 255, 0.05);

    backdrop-filter: blur(15px);

    border: 1px solid rgba(255, 255, 255, 0.1);

    border-radius: 15px;

    padding: 25px;

    text-align: center;

    transition: .3s;
}

.contact-card:hover {

    transform: translateY(-5px);

    border-color: #60A5FA;
}

.contact-card h3 {

    color: #60A5FA;

    margin-bottom: 10px;
}

.contact-card a {

    color: #60A5FA;

    text-decoration: none;
}

/* ===================================
   FOOTER
=================================== */

footer {

    margin-top: 60px;

    padding: 40px 20px;

    text-align: center;

    border-top:
        1px solid rgba(255, 255, 255, 0.1);

    background:
        rgba(255, 255, 255, 0.02);
}

.footer-content h3 {

    color: #60A5FA;

    margin-bottom: 10px;
}

.footer-content p {

    color: #D1D5DB;

    margin-bottom: 10px;
}

.footer-copy {

    font-size: .9rem;

    color: #9CA3AF;
}

.project-image {

    width: 100%;

    max-height: 350px;

    object-fit: contain;

    border-radius: 12px;

    display: block;
}

/* ===================================
   EXPERIENCE SLIDER
=================================== */
/* ===================================
   EXPERIENCE CAROUSEL
=================================== */

#experience-carousel{

    margin-top:40px;
}

#experience-carousel .timeline-item{

    min-height:650px;
}

.splide__arrow{

    background:#3B82F6 !important;
}

.splide__pagination__page.is-active{

    background:#60A5FA !important;
}
@media(max-width:768px){

    #experience-carousel .timeline-item{

        min-height:auto;
    }

}

@keyframes scrollTech {

    from {

        transform: translateX(0);
    }

    to {

        transform: translateX(-50%);
    }
}

/* ===================================
   DEMO WEBSITE BUTTON
=================================== */

.demo-link{

    background:#3B82F6;

    padding:10px 18px;

    border-radius:8px;

    transition:.3s;

    font-weight:600;
}

.demo-link:hover{

    background:#2563EB;

    transform:translateY(-2px);
}

/* =========================
   DROPDOWN MENU
========================= */

.dropdown {
    position: relative;
}

.dropdown-menu {
    
    position: absolute;
    padding-bottom: 10px;
    top: 100%;
    left: 0;

    min-width: 220px;

    background: #111827;

    border: 1px solid rgba(255,255,255,.08);

    border-radius: 10px;

    list-style: none;

    padding: 10px 0;

    display: none;

    box-shadow: 0 10px 25px rgba(0,0,0,.3);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 12px 18px;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: rgba(255,255,255,.05);
}

.dropdown:hover .dropdown-menu {
    display: block;
}
/* =========================
   HAMBURGER
========================= */

.menu-toggle {

    display: none;

    background: none;

    border: none;

    color: white;

    font-size: 2rem;

    cursor: pointer;
}

/* Mobile */

@media (max-width: 768px) {

    .menu-toggle {
        display: block;
    }

    nav {
        position: relative;
    }

    #navLinks {

        display: none;

        flex-direction: column;

        position: absolute;

        top: 100%;

        left: 0;

        width: 100%;

        background: #0B0F19;

        padding: 20px 0;

        gap: 0;
    }

    #navLinks.active {
        display: flex;
    }

    #navLinks li {
        width: 100%;
        text-align: center;
    }

    #navLinks a {
        display: block;
        padding: 15px;
    }

    /* Mobile Dropdown */

    .dropdown-menu {

        position: static;

        display: none;

        background: transparent;

        border: none;

        box-shadow: none;

        margin-top: 5px;
        padding-left: 15px;
    }

    .dropdown-menu a {
        font-size: .9rem;
        opacity: .85;
    }
     .dropdown.active .dropdown-menu {

        display: block;
    }
}