/* Base Variables & Reset */
:root {
    --primary-color: #6C63FF;
    /* Modern Purple */
    --secondary-color: #2F2E41;
    /* Dark Gray */
    --accent-color: #FF6584;
    /* Soft Red/Pink */
    --text-color: #333333;
    --bg-color: #FFFFFF;
    --bg-light: #F9F9F9;
    --bg-dark: #1A1A2E;
    --text-light: #EEEEEE;
    --font-main: 'Outfit', sans-serif;
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.15);
    --shadow-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.25);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Smooth spring-like ease */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {


    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-attachment: fixed;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: transparent;
}

.bg-dark {
    background-color: transparent;
    color: var(--text-color);
}

.text-white {
    color: var(--text-color);
}

.text-red {
    color: #e74c3c;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links li a:hover {
    color: var(--primary-color);
}

.nav-links li a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    margin-top: 60px;
    /* Offset for fixed nav */
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

.highlight {
    color: var(--primary-color);
}

.subtitle {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

.cta-buttons {
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    margin: 0 10px;
    border: 2px solid transparent;
    transform: translateZ(0);
    /* Hardware accel */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:active {
    transform: scale(0.96);
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
}

.primary-btn:hover {
    background-color: #5a52d5;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.3);
}

.secondary-btn {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* About Section */
.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 100px;
    font-size: 1.1rem;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 10px;
    /* Prevent shadow clipping */
}

.skill-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    /* Soft shadow */
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    /* 3D Setup */
    transform-style: preserve-3d;
    transform: perspective(1000px);
    will-change: transform;
}

.skill-card:hover {
    transform: translateY(-5px) scale(1.02);
    /* Slight scale & lift */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    /* Hover glow */
}

.skill-card h3 {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 600;
    transform: translateZ(20px);
    /* 3D layer */
}

.skill-card h3 i {
    color: var(--primary-color);
}

/* Placeholder Style */
.skill-card.placeholder {
    background: #2F2E41;
    /* Dark placeholder to signify empty/future */
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-top: none;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
    min-height: 200px;
    position: relative;
    opacity: 0.8;
}

.skill-card.placeholder::after {
    content: 'Future Skill';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.1);
    /* Very subtle text */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.skill-card.placeholder:hover {
    transform: none;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
    cursor: default;
}

/* Responsive Grid for Skills */
@media (max-width: 992px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags span {
    background: #eff0f6;
    color: var(--secondary-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.tags span:hover {
    background: var(--primary-color);
    color: white;
}

/* Dark Black Theme for Projects & Certifications */
.bg-black-theme {
    background-color: transparent;
    /* Very dark background */
}

.bg-black-theme .section-title {
    color: var(--text-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    justify-content: center;
}

.project-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 0;
    /* Remove padding from card wrapper, let info handle it */
    border-top: 4px solid #6366f1;
    /* blue border like skills */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    /* Flex container */
    flex-direction: column;
    /* Stack content vertical */
    height: 100%;
    /* Full height of grid cell */
    overflow: visible;
    /* Changed from hidden to allow 3D pop-out */
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.project-card h3 {
    color: #1f2937;
}

.project-card p {
    color: #4b5563;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(108, 99, 255, 0.2);
    /* Purple glow on hover */
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
    /* Transform handled by JS for tilt, but this handles non-JS hover fallback partially */
}

.project-info {
    padding: 24px;
    /* Balanced padding */
    flex: 1;
    /* Take up available space */
    display: flex;
    flex-direction: column;
    transform: translateZ(20px);
    /* Lift content */
}

.project-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-color);
    /* White to match Certifications */
    font-weight: 600;
}

.project-desc {
    color: #555;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
    /* Removed fixed height and overflow to allow text to fit */
}

.tech-stack {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-top: none;
    padding-top: 0;
}

.tech-stack span {
    font-size: 0.8rem;
    font-weight: 500;
    color: #aab2bd;
    background: #232530;
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px solid #333;
}

.project-buttons {
    display: flex;
    gap: 12px;
    margin-top: auto;
    /* Push to bottom */
    transform: translateZ(30px);
    /* Buttons float higher */
}

.btn-live,
.btn-code {
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    flex: 1;
    /* Match width */
}

.btn-live {
    background: linear-gradient(135deg, #6C63FF 0%, #4834d4 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 10px rgba(108, 99, 255, 0.4);
}

.btn-live:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(108, 99, 255, 0.6);
}

.btn-code {
    background: transparent;
    color: #928DFF;
    border: 1px solid #6C63FF;
}

.btn-code:hover {
    background: rgba(108, 99, 255, 0.1);
    color: white;
    transform: translateY(-2px);
}

/* Education Section */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -38px;
    top: 5px;
    width: 20px;
    height: 20px;
    background: white;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
}

.timeline-content h3 {
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.institution {
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.year,
.grade {
    display: block;
    color: #666;
    font-size: 0.9rem;
}

/* Achievements Section */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.achievements-column h3 {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.achievements-column h3 i {
    color: var(--accent-color);
}

.achievement-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    color: #555;
}

.achievement-list li::before {
    content: '➔';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Contact Section */
/* Contact Section */
#contact {
    background-color: var(--bg-dark);
    /* Dark background */
    padding: 80px 0 40px;
    position: relative;
    color: white;
}

#contact .section-title {
    color: var(--primary-color);
    font-weight: 700;
}

.contact-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
}

.contact-info {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 30px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    min-width: 250px;
    justify-content: center;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.contact-item a,
.contact-item span {
    color: #fff;
    /* White text */
    font-weight: 500;
    font-size: 1rem;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.social-links a {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #bdbdbd;
    font-size: 1.2rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(108, 99, 255, 0.5);
    border-color: var(--primary-color);
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    background: #111125;
    color: #777;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 20px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        background: white;
        text-align: center;
        padding: 20px 0;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.open .line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .hamburger.open .line:nth-child(2) {
        opacity: 0;
    }

    .hamburger.open .line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Certifications Section */
.certifications {
    background-color: transparent;
}

.certifications .section-subtitle {
    color: #555 !important;
}

.cert-container {
    max-width: 1200px;
    margin: auto;
    text-align: center;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    color: #4f46e5;
    margin-bottom: 10px;
}

.section-subtitle {
    color: #6b7280;
    font-size: 16px;
    max-width: 720px;
    margin: 0 auto 60px;
}

.certifications {
    padding: 80px 0;
    margin-bottom: 80px;
    /* 👈 space between sections */
}


/* Grid */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

/* Card */
.cert-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px 24px;
    text-align: left;
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.1);
    transition: all 0.35s ease;
    position: relative;
}

.cert-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 45px rgba(79, 70, 229, 0.18);
}

/* Icon */
.cert-icon {
    width: 44px;
    height: 44px;
    background: rgba(79, 70, 229, 0.12);
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 20px;
    margin-bottom: 16px;
    transform: translateZ(20px);
}

/* Text */
.cert-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 6px;
    transform: translateZ(10px);
}

.cert-card span {
    font-size: 14px;
    color: #6b7280;
}