:root {
    --bg-color: #0d0d14;
    --text-color: #e0e0e0;
    --primary-color: #7000ff;
    /* Purple */
    --secondary-color: #00ffff;
    /* Cyan */
    --accent-color: #ff007f;
    /* Pink */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

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

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

/* Background Animation */
.background-globule {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    top: -100px;
    left: -100px;
    opacity: 0.2;
    z-index: -1;
    filter: blur(80px);
    animation: moveGlobule 20s infinite alternate;
}

.background-globule.secondary {
    background: radial-gradient(circle, var(--secondary-color) 0%, transparent 70%);
    top: auto;
    bottom: -100px;
    left: auto;
    right: -100px;
    animation: moveGlobuleReverse 25s infinite alternate;
}

@keyframes moveGlobule {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(200px, 200px);
    }
}

@keyframes moveGlobuleReverse {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-200px, -200px);
    }
}

/* Typography & Utilities */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: #fff;
    margin-bottom: 0.5rem;
}

.highlight {
    background: -webkit-linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section {
    padding: 80px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

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

/* Glassmorphism */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    padding: 2rem;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-radius: 0 0 16px 16px;
    border-top: none;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--secondary-color);
    letter-spacing: 2px;
}

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

.nav-links li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

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

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 2px;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 5%;
    position: relative;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    animation: fadeInUp 1s ease forwards;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 300;
}

.hero-desc {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #aaa;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn-primary,
.btn-secondary {
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: white;
    box-shadow: 0 4px 15px rgba(112, 0, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(112, 0, 255, 0.6);
}

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

.btn-secondary:hover {
    background: var(--secondary-color);
    color: #000;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: float 6s ease-in-out infinite;
}

.hero-visual .code-block {
    width: 100%;
    max-width: 450px;
    /* Slight increase */
    position: relative;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    /* Slight decrease */
    color: #a5b3ce;
    border: 1px solid rgba(0, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.6);
    overflow-x: auto;
    /* scroll if needed */
    white-space: pre-wrap;
    /* wrap text */
    word-break: break-word;
}


/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    grid-template-rows: auto auto;
    gap: 30px;
    align-items: start;
    grid-template-areas:
        "img text"
        "img edu";
}

.about-image {
    grid-area: img;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.profile-img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    /* Create a circle */
    object-fit: cover;
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(112, 0, 255, 0.5);
    transition: transform 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.05) rotate(5deg);
}

.about-text {
    grid-area: text;
}

.education-card {
    grid-area: edu;
}

.info-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-color);
}

.edu-item {
    margin-bottom: 20px;
    border-left: 2px solid var(--primary-color);
    padding-left: 15px;
}

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

.sub-text {
    display: block;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 5px;
}

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

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--glass-border);
    top: 0;
    bottom: 0;
    left: 20px;
    /* Aligned left for easier mobile compat, or center for desktop */
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--accent-color);
    border: 4px solid var(--bg-color);
    border-radius: 50%;
    top: 20px;
    left: 13px;
    /* Adjust based on line */
    z-index: 1;
}

.timeline-content {
    position: relative;
    width: 100%;
}

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

.timeline ul {
    margin-top: 10px;
    list-style-type: none;
}

.timeline li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #ccc;
}

.timeline li::before {
    content: '▹';
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

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

.project-card {
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.1);
}

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

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.tag {
    background: rgba(112, 0, 255, 0.2);
    color: var(--secondary-color);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: monospace;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
    margin-bottom: 20px;
}

.tech-stack span {
    font-size: 0.8rem;
    color: #a5b3ce;
    border: 1px solid var(--glass-border);
    padding: 2px 8px;
    border-radius: 4px;
}

.project-links {
    margin-top: auto;
    display: flex;
    gap: 15px;
}

.link-btn {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.link-btn:hover {
    color: var(--secondary-color);
}

/* Skills */
.skills-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tags span {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: default;
    white-space: nowrap;
}

.skill-tags span:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Contact */
.contact-card {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

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

.contact-btn {
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: var(--transition);
}

.contact-btn:hover {
    color: var(--secondary-color);
}

.contact-detail {
    color: #aaa;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column-reverse;
        padding-top: 120px;
        text-align: center;
    }

    .hero-content {
        margin-top: 40px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        grid-template-areas:
            "img"
            "text"
            "edu";
        text-align: center;
    }

    .about-image {
        margin-bottom: 20px;
    }

    .nav-links {
        display: none;
        /* Add JS toggle for mobile menu later if needed, simple hide for now */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(13, 13, 20, 0.95);
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;

    }


    /* Education Cards */
    .edu-card-header { flex-direction: column; }
    .edu-meta { flex-direction: row; align-items: center; }
    .edu-cgpa-block { text-align: left; }
    .edu-cgpa-num { font-size: 1.3rem; }
    .edu-card-body { flex-direction: column; gap: 20px; }
}



/* About me no color change on links */
.info-badges .badge a {
    color: inherit;
    text-decoration: none;
}

.info-badges .badge a:visited,
.info-badges .badge a:hover,
.info-badges .badge a:active {
    color: inherit;
    text-decoration: none;
}

/* Experience Section Links */
.link-icon {
    color: #4da6ff;
    text-decoration: none;
    margin-left: 6px;
}

.link-icon:visited,
.link-icon:hover,
.link-icon:active {
    color: #4da6ff;
    text-decoration: none;
}

/* certificate icons */
.brand-logo {
  filter: invert(1); /* makes it white */
  width: 40px;       /* adjust size as needed */
  height: 40px;
}


/* ── Education Cards ── */
.edu-cards-container {
    display: flex;
    flex-direction: column;
    gap: 28px;
    max-width: 900px;
    margin: 40px auto 0;
}
.edu-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.edu-card:hover { transform: translateY(-4px); }
.edu-masters:hover { border-color: rgba(0,255,255,0.3); box-shadow: 0 16px 40px rgba(0,255,255,0.08); }
.edu-bachelors:hover { border-color: rgba(0,200,150,0.3); box-shadow: 0 16px 40px rgba(0,200,150,0.08); }
.edu-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    border-radius: 20px 0 0 20px;
}
.edu-masters::before  { background: linear-gradient(180deg, var(--primary-color), var(--secondary-color)); }
.edu-bachelors::before { background: linear-gradient(180deg, #00c896, #007aff); }
.edu-card-header {
    padding: 26px 30px 20px 40px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    flex-wrap: wrap;
}
.edu-icon-box {
    width: 46px; height: 46px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; flex-shrink: 0;
    background: rgba(112,0,255,0.15);
    border: 1px solid rgba(112,0,255,0.3);
    color: var(--secondary-color);
}
.edu-icon-bachelors {
    background: rgba(0,200,150,0.1);
    border-color: rgba(0,200,150,0.3);
    color: #00c896;
}
.edu-title-group { flex: 1; min-width: 180px; }
.edu-degree {
    font-size: 1.1rem; font-weight: 700;
    color: #fff; line-height: 1.4;
    margin-bottom: 6px;
    font-family: var(--font-heading);
}
.edu-specialization {
    display: block; font-size: 0.9rem; font-weight: 500;
    color: rgba(242, 238, 238, 0.81); margin-top: 2px;
}
.edu-school-name {
    font-size: 0.88rem; font-weight: 500;
    display: flex; align-items: center; gap: 6px; margin: 0;
}
.edu-school-name i { font-size: 0.78rem; flex-shrink: 0; }
.edu-school-masters   { color: var(--secondary-color); }
.edu-school-bachelors { color: #00c896; }
.edu-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.edu-date-badge { font-size: 0.78rem; font-weight: 600; padding: 4px 13px; border-radius: 20px; white-space: nowrap; }
.edu-badge-masters { background: rgba(0,255,255,0.08); border: 1px solid rgba(0,255,255,0.22); color: var(--secondary-color); }
.edu-badge-bachelors { background: rgba(0,200,150,0.08); border: 1px solid rgba(0,200,150,0.25); color: #00c896; }
.edu-cgpa-block { text-align: right; }
.edu-cgpa-num { font-size: 1.6rem; font-weight: 700; color: #fff; display: block; line-height: 1.1; }
.edu-cgpa-label { font-size: 0.72rem; color: #555; display: block; }
.edu-card-divider { height: 1px; background: var(--glass-border); margin: 0 30px 0 40px; }
.edu-card-body { padding: 20px 30px 26px 40px; display: flex; gap: 32px; flex-wrap: wrap; }
.edu-section-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #555; margin-bottom: 10px; }
.edu-coursework { flex: 1; min-width: 220px; }
.edu-course-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.edu-course-tags span {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--glass-border);
    color: var(--text-color); font-size: 0.78rem;
    padding: 4px 10px; border-radius: 6px; cursor: default;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.edu-course-tags span:hover { background: rgba(112,0,255,0.2); border-color: var(--secondary-color); color: #fff; }
.edu-highlights-col { flex: 1; min-width: 170px; }
.edu-pill-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; }
.edu-pill-list li { font-size: 0.85rem; color: var(--text-color); padding-left: 18px; position: relative; }
.edu-pill-masters li::before   { content: '▹'; position: absolute; left: 0; color: var(--secondary-color); font-size: 0.75rem; }
.edu-pill-bachelors li::before { content: '▹'; position: absolute; left: 0; color: #00c896; font-size: 0.75rem; }
