:root {
    --primary-bg: #FAF9F6; /* Soft off-white */
    --secondary-bg: #F0EBE1; /* Soft beige/pastel */
    --accent-color: #B4C6A6; /* Soft pastel sage green */
    --accent-color-dark: #8CA07D;
    --text-main: #4A4A4A;
    --text-light: #7A7A7A;
    --card-bg: rgba(255, 255, 255, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3 {
    font-weight: 800;
    color: #333;
}

.highlight {
    color: var(--accent-color-dark);
}

/* Navigation */
/* UPDATED LOGO & NAVBAR CSS */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px; /* Space between photo and name */
}

.nav-photo {
    width: 40px;          /* Size of the circle */
    height: 40px;
    border-radius: 50%;   /* Makes it a perfect circle */
    object-fit: cover;    /* Centers your face in the circle */
    border: 2px solid #8CA07D; /* Matches your theme color */
}

.logo {
    font-weight: 800;
    font-size: 1.2rem;
    color: #333;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-color-dark);
    transition: width 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--accent-color-dark);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    margin-top: 60px;
}

.hero-content {
    flex: 1;
    padding-right: 5%;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.hero-content h2 {
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 500px;
}

.cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--accent-color-dark);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
}

.primary-btn {
    background-color: var(--accent-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(180, 198, 166, 0.4);
}

.primary-btn:hover {
    background-color: var(--accent-color-dark);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(180, 198, 166, 0.6);
}

.secondary-btn {
    background-color: transparent;
    color: var(--text-main);
    border: 2px solid var(--accent-color);
}

.secondary-btn:hover {
    background-color: var(--accent-color);
    color: #fff;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 350px;
    height: 450px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 20px 20px 0px var(--secondary-bg);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-image img:hover {
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg) scale(1.05);
    box-shadow: 30px 30px 15px rgba(0,0,0,0.1), 15px 15px 0px var(--secondary-bg);
}

/* Sections General */
.section {
    padding: 100px 10%;
}

.bg-light {
    background-color: var(--secondary-bg);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.section-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Education Timeline */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: var(--accent-color);
}

.timeline-item {
    margin-bottom: 2rem;
    padding-left: 50px;
    position: relative;
    transition: transform 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(10px);
}

.timeline-dot {
    position: absolute;
    left: 14px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--accent-color-dark);
    border: 3px solid var(--secondary-bg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.5);
    box-shadow: 0 0 10px var(--accent-color);
}

.timeline-content h3 {
    margin-bottom: 0.2rem;
}

.timeline-content .date {
    color: var(--accent-color-dark);
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* Grids */
.skills-grid, .cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.skill-card, .cert-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255,255,255,0.5);
    cursor: pointer;
    transform-style: preserve-3d;
}

.skill-card:hover, .cert-card:hover {
    background-color: #e8f0e1;
    border-color: var(--accent-color);
    box-shadow: -10px 15px 30px rgba(180, 198, 166, 0.4);
    transform: translateY(-10px) rotateX(5deg) rotateY(-5deg);
}

.skill-card.active, .cert-card.active {
    background-color: var(--accent-color);
}

/* NPTEL Elite Certificate Cards */
.cert-card.nptel-elite {
    position: relative;
    border-left: 4px solid #8B1A1A;
    text-align: left;
    padding: 1.8rem 2rem 1.5rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.85), rgba(250,245,235,0.9));
}

.cert-card.nptel-elite:hover {
    border-color: #6B1414;
    background: linear-gradient(135deg, #fdf6ed, #f5ede0);
}

.cert-badge {
    display: inline-block;
    background: linear-gradient(135deg, #8B1A1A, #B22222);
    color: #FFD700;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    margin-bottom: 0.6rem;
}

.cert-card.nptel-elite h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: #333;
}

.cert-score {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    line-height: 1.5;
}

.cert-score strong {
    color: #8B1A1A;
}

.cert-meta {
    font-size: 0.75rem;
    color: #aaa;
    margin-top: 0.3rem;
    letter-spacing: 0.3px;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-style: preserve-3d;
}

.project-card:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(2deg);
    box-shadow: -15px 20px 40px rgba(0,0,0,0.1);
}

.project-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.placeholder-1 { background-color: #D4E2D4; }
.placeholder-2 { background-color: #FFDFD3; }

.project-info {
    padding: 2rem;
}

.project-info h3 {
    margin-bottom: 0.5rem;
}

.project-info p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.btn-link {
    color: var(--accent-color-dark);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.btn-link:hover {
    gap: 10px;
    color: var(--accent-color);
}

/* Contact */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
    background: rgba(255,255,255,0.8);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(180, 198, 166, 0.3);
}

.social-links {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
}

.social-links a:hover {
    color: var(--accent-color-dark);
    transform: translateY(-5px) rotate(5deg) scale(1.1);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--primary-bg);
    color: var(--text-light);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    transition: all 0.3s ease-in-out;
    border-radius: 3px;
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: #ffffff;
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s cubic-bezier(0.77, 0, 0.175, 1);
        justify-content: center;
        gap: 2rem;
        z-index: 1000;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li a {
        font-size: 1.5rem;
    }

    /* Hamburger Animation */
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 120px;
        margin-top: 0;
    }
    .hero-content {
        padding-right: 0;
        margin-top: 2rem;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content h2 {
        font-size: 1.5rem;
    }
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }
    .hero-image img {
        width: 250px;
        height: 320px;
        box-shadow: 15px 15px 0px var(--secondary-bg);
    }
    .hero-image img:hover {
        transform: translate(-5px, -5px);
        box-shadow: 20px 20px 0px var(--secondary-bg);
    }
    .section {
        padding: 60px 5%;
    }
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    .contact-content {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem;
        gap: 2rem;
    }
    .skills-grid, .cert-grid, .projects-grid {
        grid-template-columns: 1fr;
    }
    .timeline-item {
        padding-left: 30px;
    }
    .timeline::before {
        left: 10px;
    }
    .timeline-dot {
        left: 4px;
        width: 12px;
        height: 12px;
    }
}
