@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;300;400;800&display=swap");
:root {
    --primary-bg: #ffffff;
    --secondary-bg: #ffffff;
    --card-bg: #ffffff;
    --accent-color: #acb1b4;
    --accent-secondary: #3a7bb0;
    --text-primary: #000000;
    --text-secondary: #050505;
    --text-muted: #ffffff;
    --border-light: #3a3a3a;
    --hover-accent: #5ab0ff;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.4);
    --gradient-subtle: linear-gradient(135deg, #461515 0%, #1e1e1e 100%);
    --shadow-glow: 0 0 30px rgba(74, 159, 224, 0.2);
    --gradient-primary: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    --gradient-accent: linear-gradient(135deg, #2c5282 0%, #4a9fe0 100%);
}


.nav-links a::after {
            content: '';
            position: absolute;
            bottom: -4px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--hover-accent);
            transition: width 0.3s ease;
            
        }

        .nav-links a:hover {
            color: var(--text-primary);
            transform: translateY(-2px);
        }

        .nav-links a:hover::after {
            width: 100%;
        }

 

  
.education {
            padding: 8rem 2rem;
            background: var(--secondary-bg);
            position: relative;
        }

        .education::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: radial-gradient(circle at 70% 20%, rgba(74, 144, 226, 0.03) 0%, transparent 50%);
            pointer-events: none;
        }

        .education-container {
            max-width: 1400px;
            margin: 0 auto;
            position: relative;
            z-index: 1;
        }

       .section-header {
            text-align: center;
            margin-bottom: 4rem;
        }

        .section-header h2 {
            font-size: 3.5rem;
font-weight: 500;
            margin-bottom: 1rem;
            color: var(--text-primary);
            letter-spacing: -0.025em;
        }

        .section-header p {
            font-size: 1.125rem;
            font-weight: 500;
            color: var(--text-secondary);
            max-width: 600px;
            margin: 0 auto;
        }

        .education-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
            gap: 2rem;
        }

        .education-card {
            background: var(--card-bg);
            padding: 2.5rem;
            border: 1px solid var(--border-light);
            border-radius: 12px;
            transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            position: relative;
            overflow: hidden;
        }

        .education-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 0px;
            background: var(--gradient-accent);
            transform: scaleX(0);
            transition: transform 0.4s ease;
        }

        .education-card:hover::before {
            transform: scaleX(1);
        }

        .education-card:hover {
            transform: translateY(-8px);
            box-shadow: var(--shadow-hover);
            border-color: var(--blue-muted);
        }

        .education-card h3 {
            font-size: 1.375rem;
            font-weight: 500;
            margin-bottom: 0.5rem;
            color: var(--text-primary);
            letter-spacing: -0.025em;
            transition: color 0.3s ease;
        }

        .education-card:hover h3 {
            color: var(--blue-secondary);
        }

        .education-card .degree {
            font-size: 1rem;
            color: var(--blue-muted);
            margin-bottom: 1.5rem;
            font-weight: 500;
            text-transform: uppercase;
            font-size: 0.875rem;
            letter-spacing: 0.05em;
        }

        .education-card p {
            color: var(--text-secondary);
            margin-bottom: 1rem;
            line-height: 1.6;
            transition: color 0.3s ease;
        }

        .education-card:hover p {
            color: var(--text-primary);
        }

            .skills-list {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-top: 1.5rem;
        }

        
.skills {
    position: relative; /* This is crucial for positioning children absolutely */
    z-index: 10;
    min-height: 100vh;
    padding: 80px 0;
    overflow: hidden;
}

.back-4 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 107%;
    object-fit: cover;
    z-index: -2; /* This places it behind the other backgrounds, which are at -1 */
    pointer-events: none;
}

.back-3 {
    position: absolute; /* Positions the images relative to the viewport */
    top: 0;
    left: -19%;
    width: 100vw;  /* Fills the entire width of the viewport */
    height: 100vh; /* Fills the entire height of the viewport */
    object-fit: cover; /* Ensures the images cover the area without distortion */
    z-index: -1;
    pointer-events: none;
}
/* Update the back-2 and back-1 z-index to be higher than normal skill cards but lower than hovered ones */
.back-2, .back-1 {
    position: absolute;
    top: 0;
    left: -19%;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 10; /* Higher than normal skill cards (5) but lower than hovered skill cards (15) */
    pointer-events: none;
}


.back-1 {
    animation: bottomIn 1s ease-out forwards;
}

.back-2 {
    animation: bottomIn 1.3s ease-out forwards;
}

.back-3 {
    animation: bottomIn 1.5s ease-out forwards;
}



.skill-card {
    flex: 0 0 calc(50% - 1rem); /* Show 2 cards at a time with gap */
    min-width: 0; /* Prevent flex items from growing beyond their container */
    scroll-snap-align: start;
}

.slider {
    display: flex;
     justify-content: space-between;

    z-index: 26;
   
  position: absolute; /* Change from relative to absolute */
    width: calc(100% + 320px); /* Extend beyond container */
    left: -160px; /* Center the extension */
    top: 230px; /* Move up */
}

.slider i {
   font-size: 36px;
  color: rgba(255, 255, 255, 0.4);
    

    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
   
}

.slider i:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
    color: var(--accent-color);
    
}

/* Update the media query for mobile */
@media (max-width: 768px) {
    .skill-card {
        flex: 0 0 100%; /* Show 1 card at a time on mobile */
    }
}

        .skill-tag {
            
            background: var(--primary-bg);
            color: var(--blue-secondary);
            padding: 0.375rem 0.75rem;
            font-size: 0.75rem;
            font-weight: 500;
            border: 1px solid var(--border-light);
            border-radius: 6px;
            letter-spacing: 0.025em;
            transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

        .skill-tag:hover {
           
            background: var(--accent-color);
            color: var(--secondary-bg);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(74, 144, 226, 0.2);
        }

        /* Skills Section */
        .skills {
            padding: 8rem 2rem;
            background: var(--primary-bg);
            position: relative;
        }

        .skills::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: radial-gradient(circle at 30% 80%, rgba(91, 115, 219, 0.03) 0%, transparent 50%);
            pointer-events: none;
        }

        .skills-container {
            
            max-width: 1400px;
            margin: 0 auto;
            position: relative;
            z-index: 1;
        }

        .skills-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 2rem;
            transition: transform 0.5s ease;
            
        }

      .skill-card {
     background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2.5rem;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    transform: translateY(-100px);
    z-index: 5; /* Above back-4 (z-index: -2) and back-3 (z-index: -1), but below back-2 and back-1 (z-index: -1) */
}

        .skill-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 0px;
            background: var(--gradient-accent);
            transform: scaleX(0);
            transition: transform 0.4s ease;
        }

        .skill-card:hover::before {
            transform: scaleX(1);
        }
.skill-card:hover {
    transform: translateY(-108px);
    
    box-shadow: var(--shadow-hover);
    border-color: var(--blue-muted);
    z-index: 15; /* Goes in front of back-2 and back-1 when hovered */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(10px);
}

        .skill-icon {
            width: 48px;
            height: 48px;
            margin-bottom: 1.5rem;
            color: var(--blue-primary);
            transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
          
   
        }

        .skill-card:hover .skill-icon {
            color: white;
            transform: scale(1.1) rotate(5deg);
        }

        .skill-card h3 {
            font-size: 1.25rem;
            font-weight: 400;
            margin-bottom: 1rem;
            color: var(--text-primary);
            letter-spacing: -0.025em;
            transition: color 0.3s ease;
        }

        .skill-card:hover h3 {
            color: white;
        }

        .skill-card p {
            color: var(--text-secondary);
            font-size: 0.975rem;
            line-height: 1.6;
            transition: color 0.3s ease;
        }

        .skill-card:hover p {
            color: var(--text-primary);
        }
  /* Portfolio Section */
        .portfolio {
            padding: 8rem 2rem;
            background: var(--secondary-bg);
            position: relative;
        }

        .portfolio::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: radial-gradient(circle at 80% 30%, rgba(74, 144, 226, 0.03) 0%, transparent 50%);
            pointer-events: none;
        }

        .portfolio-container {
            max-width: 1400px;
            margin: 0 auto;
            position: relative;
            z-index: 1;
        }

        .portfolio-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 2rem;
        }

        .portfolio-item {
            background: var(--gradient-card);
            border: 1px solid var(--border-light);
            border-radius: 12px;
            overflow: hidden;
            transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            cursor: pointer;
            position: relative;
        }

        .portfolio-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 0px;
            background: var(--gradient-accent);
            transform: scaleX(0);
            transition: transform 0.4s ease;
        }

        .portfolio-item:hover::before {
            transform: scaleX(1);
        }

        .portfolio-item:hover {
            transform: translateY(-8px);
            box-shadow: var(--shadow-hover);
            border-color: var(--blue-muted);
        }

        .portfolio-image {
            width: 100%;
            height: 240px;
            background: radial-gradient(circle at 80% 30%, rgba(15, 102, 202, 0.03) 0%, transparent 50%), linear-gradient(to bottom, 
            rgba(15, 102, 202, 0.03),       /* Dark base layer */
            rgba(191, 189, 202, 0.95)          /* Even darker at bottom */
        );
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            border-bottom: 1px solid var(--border-light);
            transition: all 0.4s ease;
            overflow: hidden;
        }

        .portfolio-image::before {
            content: 'Preview';
            color: var(--text-muted);
            font-size: 0.875rem;
            font-weight: 500;
                position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
     font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 16px;
     z-index: 2;
    opacity: 1;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    background: rgba(25, 25, 25, 0.7);
        }
        .portfolio-item:hover .portfolio-image::before {
    opacity: 0;
    /* Keep using translate(-50%, -50%) to maintain center position */
    transform: translate(-50%, -50%) scale(0.9);
}
        .portfolio-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(25, 25, 25, 0.8) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-image::after {
    opacity: 1;
}

        .portfolio-item:hover .portfolio-image::before {
            color: var(--blue-secondary);
            transform: scale(1.05);
        }

        .portfolio-content {
            padding: 1.5rem;
        }

        .portfolio-content h3 {
            font-size: 1.125rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: var(--text-primary);
            letter-spacing: -0.025em;
            transition: color 0.3s ease;
        }

        .portfolio-item:hover .portfolio-content h3 {
            color: var(--blue-secondary);
        }

        .portfolio-content p {
            color: var(--text-secondary);
            font-size: 0.875rem;
            line-height: 1.5;
            transition: color 0.3s ease;
        }

        .portfolio-item:hover .portfolio-content p {
            color: var(--text-primary);
        }

        .portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
     transform: scale(1.2); /* Start zoomed in */
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
}
        /* Personal Projects Section */
        .personal-projects {
            padding: 8rem 2rem;
            background: var(--primary-bg);
            position: relative;
        }

        .personal-projects::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: radial-gradient(circle at 20% 20%, rgba(91, 115, 219, 0.03) 0%, transparent 50%);
            pointer-events: none;
        }

        .personal-projects-container {
            max-width: 1400px;
            margin: 0 auto;
            position: relative;
            z-index: 1;
        }

        .projects-placeholder {
            background: var(--gradient-card);
            border: 2px dashed var(--border-light);
            border-radius: 12px;
            padding: 4rem 2rem;
            text-align: center;
            transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            position: relative;
            overflow: hidden;
        }

        .projects-placeholder::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(45deg, transparent 30%, rgba(74, 144, 226, 0.02) 50%, transparent 70%);
            animation: gradientShift 6s ease-in-out infinite;
        }

        .projects-placeholder:hover {
            border-color: var(--blue-muted);
            transform: translateY(-4px);
            box-shadow: var(--shadow-glow);
        }

        .projects-placeholder h3 {
            font-size: 1.375rem;
            font-weight: 600;
            margin-bottom: 1rem;
            color: var(--text-secondary);
            letter-spacing: -0.025em;
            transition: color 0.3s ease;
        }

        .projects-placeholder p {
            color: var(--text-muted);
            max-width: 500px;
            margin: 0 auto;
            line-height: 1.6;
        }

        /* Contact Section */
        .contact {
            padding: 8rem 2rem;
            background: var(--primary-bg);
            text-align: center;
        }

        .contact-container {
            max-width: 800px;
            margin: 0 auto;
        }

        .contact h2 {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 1rem;
            color: var(--text-primary);
            letter-spacing: -0.025em;
        }

        .contact p {
            font-size: 1.125rem;
            color: var(--text-secondary);
            margin-bottom: 3rem;
            line-height: 1.6;
        }

        .contact-links {
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            flex-wrap: wrap;
        }

        .contact-link {
            padding: 0.875rem 2rem;
            background: var(--card-bg);
            color: var(--text-primary);
            text-decoration: none;
            font-weight: 500;
            font-size: 0.875rem;
            transition: all 0.2s ease;
            border: 1px solid var(--border-light);
        }

        .contact-link:hover {
            background: var(--text-primary);
            color: var(--secondary-bg);
            transform: translateY(-1px);
        }
        /* Smooth scrolling */
        html {
            scroll-behavior: smooth;
        }

        /* Custom scrollbar */
        ::-webkit-scrollbar {
            width: 6px;
        }

        ::-webkit-scrollbar-track {
            background: var(--primary-bg);
        }

        ::-webkit-scrollbar-thumb {
            background: var(--border-light);
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--text-secondary);
        }
        /* Portfolio Tabs */
.portfolio-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.tab-button {
    position: relative;
    padding: 0.75rem 2rem;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.tab-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    opacity: 0;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.6s cubic-bezier(0.83, 0, 0.17, 1),
                opacity 0.4s ease;
    z-index: -1;
    mix-blend-mode: overlay;
}

.tab-button:hover {
    color: var(--text-primary);
    border-color: rgba(93, 138, 255, 0.4);
    transform: translateY(-2px);
}

.tab-button:hover::before {
    opacity: 0.2;
    transform: scaleX(1);
    transform-origin: left;
}

.tab-button.active {
    background: rgba(93, 138, 255, 0.15);
    color: rgb(37, 38, 41);
    border-color: var(--accent-color);
    box-shadow: 0 4px 20px rgba(93, 138, 255, 0.15),
                0 0 0 1px var(--accent-color);
    transform: translateY(-2px);
}

.tab-button.active::before {
    opacity: 0.3;
    transform: scaleX(1);
    background: var(--accent-color);
    mix-blend-mode: normal;
}

.tab-button.active:hover {
    box-shadow: 0 6px 25px rgba(93, 138, 255, 0.25),
                0 0 0 1px var(--accent-color);
}

/* Add this for a subtle floating animation on active tab */
@keyframes floatTab {
    0%, 100% { transform: translateY(-2px); }
    50% { transform: translateY(-4px); }
}

.tab-button.active {
    animation: floatTab 4s ease-in-out infinite;
}

/* Ripple effect on click */
.tab-button:active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.4);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0) translate(-50%, -50%);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20) translate(-50%, -50%);
        opacity: 0;
    }
}
 /* Responsive Design */
        @media (max-width: 768px) {
            .nav-links {
                display: none;
            }

            .hero-container {
                grid-template-columns: 1fr;
                text-align: left;
                gap: 3rem;
            }

            .hero-visual {
                height: 200px;
            }

            .geometric-grid {
                grid-template-columns: repeat(2, 60px);
                grid-template-rows: repeat(2, 60px);
                gap: 15px;
            }

            .education-grid {
                grid-template-columns: 1fr;
            }

            .portfolio-grid {
                grid-template-columns: 1fr;
            }

            .contact-links {
                flex-direction: column;
                align-items: center;
            }

            .section-header h2 {
                font-size: 2rem;
            }
        }
        /* Desktop and larger */
@media (min-width: 1024px) {
    .education-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }

    .education,
    .skills,
    .portfolio,
    .personal-projects,
    .contact {
        padding: 8rem 2rem;
    }
}