/* ---------- CSS VARIABLES & RESET ---------- */
:root {
    /* Premium Dark Theme Palette */
    --bg-main: #0a0f1c;
    --bg-alt: #0d1425;
    --card-bg: rgba(20, 28, 47, 0.6);
    --card-border: rgba(255, 255, 255, 0.08);

    --primary: #38bdf8;
    /* Electric Blue */
    --primary-glow: rgba(56, 189, 248, 0.5);

    --secondary: #818cf8;
    /* Indigo/Purple accent */
    --accent: #34d399;
    /* Teal accent */

    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Glassmorphism utilities */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 20px var(--primary-glow);
}

/* Typography */
h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-main);
}

p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 100px 0;
}

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

.section-title {
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

/* ---------- NAVIGATION ---------- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(10, 15, 28, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--card-border);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: var(--transition);
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

/* ---------- HERO SECTION ---------- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.5;
}

.shape1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    left: -100px;
}

.shape2 {
    width: 350px;
    height: 350px;
    background: var(--secondary);
    bottom: -100px;
    right: -100px;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 10;
}

.greeting {
    color: var(--primary);
    font-weight: 600;
    font-family: var(--font-heading);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.name {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.1;
    margin-bottom: 15px;
    background: linear-gradient(to right, #fff, #a5b4fc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--text-muted);
    margin-bottom: 30px;
}

#typing-text {
    color: var(--primary);
}

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

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.hero .summary {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 40px;
}

/* BUTTONS */
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 15px var(--primary-glow);
}

.btn-primary:hover {
    background: #fff;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: rgba(56, 189, 248, 0.1);
    transform: translateY(-2px);
}

/* SOCIAL LINKS */
.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 50%;
    color: var(--text-main);
    font-size: 1.2rem;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--primary-glow);
}

/* ---------- ABOUT SECTION ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.travel-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(145deg, var(--card-bg), rgba(30, 41, 59, 0.8));
}

.travel-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

/* ---------- INTERESTS & SKILLS ---------- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.icon-wrap {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.skill-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.tech-stack {
    text-align: center;
}

.tech-stack h3 {
    margin-bottom: 25px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.tag {
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid rgba(56, 189, 248, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.tag:hover {
    background: var(--primary);
    color: #000;
    transform: translateY(-2px);
}

/* ---------- EDUCATION ---------- */
.edu-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 30px;
}

.timeline h3,
.certs h3 {
    margin-bottom: 30px;
    font-size: 1.6rem;
}

.timeline-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 30px;
    border-left: 2px solid var(--card-border);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -6px;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.timeline-date {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.timeline-content h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.timeline-content h5 {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
}

.cert-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.cert-item:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--primary-glow);
    background: rgba(255, 255, 255, 0.06);
}

.cert-img-wrapper {
    width: 100%;
    height: 90px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cert-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.cert-item:hover .cert-img-wrapper img {
    transform: scale(1.08);
}

.cert-item p {
    font-size: 0.85rem;
    color: var(--text-main);
    line-height: 1.3;
    margin-bottom: 0;
}

/* ---------- PROJECTS ---------- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.project-card {
    position: relative;
    padding-top: 45px;
}

.card-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--primary);
    color: #000;
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 16px 0 16px 0;
}

.exp-badge {
    background: var(--secondary);
    color: #fff;
}

.ongoing-badge {
    background: #f59e0b; /* Amber */
    color: #fff;
}

.project-card h3 {
    margin-bottom: 5px;
    font-size: 1.4rem;
}

.project-card .company {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 15px;
    font-size: 1rem;
}

.project-links {
    margin-top: 20px;
}

.btn-sm {
    padding: 8px 15px;
    font-size: 0.9rem;
}

/* ---------- CREATIVE ---------- */
.layout-flex {
    display: flex;
    gap: 40px;
    align-items: center;
}

.creative-text {
    flex: 2;
}

.creative-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.2;
}

.huge-icon {
    font-size: 10rem;
    color: var(--text-main);
}

.creative-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.btn-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    border: none;
}

.btn-vsco {
    background: #000;
    color: white;
    border: none;
    border: 1px solid #333;
}

.btn-instagram:hover,
.btn-vsco:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    color: white;
}

/* ---------- CONTACT / FOOTER ---------- */
.contact-box {
    text-align: center;
    background: linear-gradient(145deg, var(--card-bg), rgba(15, 23, 42, 0.9));
    border-top: 3px solid var(--primary);
    margin-bottom: 50px;
}

.contact-box h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.c-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.c-method i {
    font-size: 1.8rem;
    color: var(--primary);
    background: rgba(56, 189, 248, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.c-method a,
.c-method span {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.c-method a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--card-border);
    padding-top: 30px;
    padding-bottom: 30px;
}

/* ---------- SCROLL ANIMATIONS (Triggered by JS) ---------- */
.hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.show-anim {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- RESPONSIVE DESIGN ---------- */
@media (max-width: 900px) {

    .about-grid,
    .edu-grid,
    .layout-flex {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .creative-visual {
        display: none;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .name {
        font-size: 2.5rem;
    }

    .contact-methods {
        flex-direction: column;
        gap: 25px;
    }
}

/* ---------- IMAGE MODAL ---------- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show-modal {
    display: block;
    opacity: 1;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.2);
}

.modal-caption {
    margin: 20px auto;
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.modal-close:hover,
.modal-close:focus {
    color: var(--primary);
    text-decoration: none;
}