:root {
    --primary: #0f4c75;
    --secondary: #3282b8;
    --accent: #bbe1fa;
    --light: #f7f9fc;
    --glass: rgba(255, 255, 255, 0.75);
}

/* ===== GLOBAL ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background: linear-gradient(180deg, #f2f6ff, #ffffff);
    color: #1b1b1b;
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 40px;
    background: var(--glass);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
    z-index: 1000;
}

.logo {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary);
}

nav {
    display: flex;
}

nav a {
    margin: 0 16px;
    text-decoration: none;
    font-weight: 500;
    color: #1b1b1b;
    position: relative;
    transition: color 0.3s;
}

nav a:hover, nav a.active {
    color: var(--primary);
}

nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: .3s;
}

nav a:hover::after, nav a.active::after {
    width: 100%;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 26px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 4px 0;
}

/* ===== HERO SECTION WITH PHOTO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at top right, #bbe1fa, transparent 40%),
        radial-gradient(circle at bottom left, #3282b8, transparent 45%),
        linear-gradient(135deg, #0f4c75, #3282b8);
    color: white;
    text-align: center;
    padding: 120px 20px 60px 20px;
}

.profile-box {
    animation: fadeUp 1s ease;
}

.hero-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 5px solid var(--glass);
    object-fit: cover;
    margin-bottom: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 5px;
}

.designation {
    font-size: 20px;
    color: var(--accent);
    font-weight: 300;
    margin-bottom: 15px;
}

/* Button Container */
.btn-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 28px;
    flex-wrap: wrap;
}

.hero button,
.btn-download {
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.btn-work {
    background: linear-gradient(90deg, #ffffff, #eaf2ff);
    color: var(--primary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-download {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-work:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.btn-download:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-3px);
}

/* ===== SECTIONS ===== */
section {
    padding: 90px 40px;
    text-align: center;
}

section h2 {
    font-size: 34px;
    margin-bottom: 18px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    color: transparent;
}

/* Experience & Project Layout */
.experience-item,
.project-card {
    background: white;
    max-width: 800px;
    margin: 20px auto;
    padding: 30px;
    border-radius: 15px;
    text-align: left;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-left: 6px solid var(--primary);
    transition: 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* About Section Layout */
.about-container {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    text-align: left;
    padding: 20px;
}

.about-text {
    color: #555;
    line-height: 1.8;
    font-size: 16px;
}

.about-skills {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .05);
    border-top: 6px solid var(--primary);
}

.about-skills h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

@media(max-width: 768px) {
    .about-container {
        grid-template-columns: 1fr;
    }
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.tech-tag {
    background: var(--accent);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.project-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
}

.project-link:hover {
    text-decoration: underline;
}

/* ===== EDUCATION ===== */
.edu-container {
    max-width: 1000px;
    margin: 45px auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    text-align: left;
}

.edu-column h3.col-title {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.edu-card {
    background: white;
    border-left: 4px solid var(--secondary);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.edu-card:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.edu-card h4 {
    font-size: 18px;
    color: #1b1b1b;
    margin-bottom: 5px;
}

.edu-card .inst {
    font-weight: 600;
    color: var(--secondary);
    font-size: 15px;
    margin-bottom: 8px;
}

.edu-card .details {
    font-size: 14px;
    color: #666;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cert-item {
    background: white;
    padding: 18px 25px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: 0.3s;
}

.cert-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.cert-icon {
    font-size: 24px;
    color: #ff9900;
    background: #fff5e6;
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.cert-info h4 {
    font-size: 16px;
    color: #1b1b1b;
    margin-bottom: 4px;
}

.cert-info p {
    font-size: 13px;
    color: #666;
}

@media(max-width: 768px) {
    .edu-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ===== CONTACT SOCIAL ===== */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 30px;
}

.social-icons a {
    font-size: 28px;
    color: var(--primary);
    transition: 0.3s;
}

.social-icons a:hover {
    color: var(--secondary);
    transform: scale(1.2);
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
    text-align: center;
    padding: 18px;
}

/* ===== ANIMATION ===== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Animation */
.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}
.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media(max-width:768px) {
    nav {
        position: absolute;
        top: 70px;
        right: -100%;
        width: 100%;
        background: white;
        flex-direction: column;
        text-align: center;
        transition: .4s;
        box-shadow: 0 15px 30px rgba(0, 0, 0, .1);
    }

    nav.active {
        right: 0;
    }

    nav a {
        padding: 16px;
        border-bottom: 1px solid #eee;
        margin: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-img {
        width: 150px;
        height: 150px;
    }

    .btn-container {
        flex-direction: column;
        align-items: center;
    }
}
