/* --- CSS Variables & Reset --- */
:root {
    --black: #0a0a0a;
    --dark: #111118;
    --cyan: #00f0ff;
    --magenta: #ff00aa;
    --green: #00ff88;
    --blue: #0066ff;
    --font-display: 'Orbitron', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-body: 'Space Grotesk', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--black);
    color: #e0e0e0;
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.text-cyan {
    color: var(--cyan);
}

.text-magenta {
    color: var(--magenta);
}

.text-green {
    color: var(--green);
}

.text-blue {
    color: var(--blue);
}

.gradient-text {
    background: linear-gradient(90deg, var(--cyan), var(--blue), var(--magenta));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.kannada-gradient-text {
    background: linear-gradient(90deg, #ffd700, #ff0000);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.kannada-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1), rgba(255, 0, 0, 0.1));
    border: 1px solid rgba(255, 215, 0, 0.4);
    padding: 6px 14px;
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: #ffd700;
    vertical-align: middle;
    margin-left: 10px;
    position: relative;
    top: -6px;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.2);
}

/* --- Glassmorphism Cards --- */
.glass-card {
    background: linear-gradient(135deg, rgba(17, 17, 24, 0.8) 0%, rgba(10, 10, 10, 0.9) 100%);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(0, 240, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* --- Kannada Touches --- */
.kannada-text {
    font-size: 0.9rem;
    color: #ffd700;
    /* Yellow */
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: 1px;
}

.kannada-flag-line {
    height: 3px;
    width: 50px;
    background: linear-gradient(90deg, #ffd700 50%, #ff0000 50%);
    margin-top: 5px;
    border-radius: 2px;
}

.kannada-flag-icon {
    display: inline-block;
    width: 20px;
    height: 14px;
    background: linear-gradient(to bottom, #ffd700 50%, #ff0000 50%);
    border-radius: 2px;
    margin-left: 8px;
    vertical-align: middle;
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.3);
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--cyan);
    text-decoration: none;
}

.logo-dot {
    color: var(--magenta);
}

.logo-switcher {
    position: relative;
    display: flex;
    align-items: center;
}

.logo-switcher .en,
.logo-switcher .kn {
    display: flex;
    align-items: center;
}

.logo-switcher .en {
    animation: toggleEn 20s infinite;
}

.logo-switcher .kn {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    opacity: 0;
    animation: toggleKn 20s infinite;
}

@keyframes toggleEn {

    0%,
    45% {
        opacity: 1;
    }

    50%,
    95% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes toggleKn {

    0%,
    45% {
        opacity: 0;
    }

    50%,
    95% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.nav-links a {
    font-family: var(--font-mono);
    color: #aaa;
    text-decoration: none;
    margin-left: 30px;
    font-size: 0.9rem;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--cyan);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--cyan);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-btn {
    padding: 10px 20px;
    border: 1px solid var(--cyan);
    color: var(--cyan);
    border-radius: 8px;
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 100px 40px; /* added 120px top padding to clear fixed navbar and 40px bottom */
    position: relative;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.hero-text {
    max-width: 650px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    padding: 6px 16px;
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--green);
    margin-bottom: 20px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    color: white;
    line-height: 1.1;
    margin-bottom: 20px;
}

.cursor {
    display: inline-block;
    width: 12px;
    height: 40px;
    background: var(--green);
    margin-left: 5px;
    animation: blink 1s infinite;
    vertical-align: middle;
}

.terminal-lines {
    margin-bottom: 25px;
}

.t-line {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: #ccc;
    margin: 5px 0;
}

.prompt {
    color: var(--magenta);
    margin-right: 10px;
}

.hero-desc {
    color: #aaa;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn-primary {
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    color: #000;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    padding: 14px 32px;
    border: 2px solid var(--magenta);
    color: var(--magenta);
    border-radius: 8px;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 600;
    transition: all 0.3s;
    background: transparent;
}

.btn-secondary:hover {
    background: rgba(255, 0, 170, 0.1);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    width: 400px;
    height: 400px;
}

.hero-slideshow {
    position: absolute;
    inset: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    z-index: 5;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.hero-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
}

/* Suit is always visible as the base */
.hero-photo:nth-child(1) {
    opacity: 1;
    z-index: 1;
}

/* The rest animate on top */
.hero-photo:nth-child(2),
.hero-photo:nth-child(3),
.hero-photo:nth-child(4) {
    animation: slideAnimation 30s infinite;
    z-index: 2;
}

/* Delay for each animated slide */
.hero-photo:nth-child(2) {
    animation-delay: 0s;
}

.hero-photo:nth-child(3) {
    animation-delay: 10s;
}

.hero-photo:nth-child(4) {
    animation-delay: 20s;
}

@keyframes slideAnimation {
    0% {
        opacity: 0;
        transform: scale(1.05);
    }

    6% {
        opacity: 1;
        transform: scale(1);
    }

    16% {
        opacity: 1;
        transform: scale(1);
    }

    22% {
        opacity: 0;
        transform: scale(1.05);
    }

    100% {
        opacity: 0;
        transform: scale(1.05);
    }
}

.orbit-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    z-index: 10;
}

.orbit {
    position: absolute;
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 50%;
}

.ring-1 {
    width: 100%;
    height: 100%;
    animation: spin 20s linear infinite;
}

.ring-2 {
    width: 80%;
    height: 80%;
    border-color: rgba(255, 0, 170, 0.2);
    animation: spin-reverse 25s linear infinite;
}

.ring-3 {
    width: 60%;
    height: 60%;
    border-color: rgba(0, 255, 136, 0.2);
    animation: spin 30s linear infinite;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--cyan);
    border-radius: 15px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--cyan);
    border-radius: 2px;
    animation: scroll-anim 2s infinite;
}

/* --- Sections General --- */
.section {
    padding: 100px 50px;
    position: relative;
}

.cyber-grid-bg {
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    font-family: var(--font-mono);
    color: var(--cyan);
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 3rem;
    color: white;
    margin-top: 10px;
}

/* --- Timeline Styles (Shared by Journey & Achievements) --- */
.timeline {
    position: relative;
    border-left: 2px solid rgba(0, 240, 255, 0.2);
    margin-left: 20px;
    padding-left: 40px;
}

.timeline-item {
    margin-bottom: 40px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -49px;
    top: 20px;
    width: 16px;
    height: 16px;
    background: var(--black);
    border: 2px solid var(--cyan);
    border-radius: 50%;
    z-index: 1;
}

.timeline-content {
    position: relative;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.timeline-header h3 {
    font-family: var(--font-display);
    color: white;
    font-size: 1.2rem;
}

.timeline-date {
    font-family: var(--font-mono);
    color: #666;
    font-size: 0.85rem;
    display: block;
}

.gpa-badge {
    background: rgba(0, 255, 136, 0.1);
    color: var(--green);
    padding: 4px 10px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: bold;
    border: 1px solid rgba(0, 255, 136, 0.2);
    white-space: nowrap;
}

.semesters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.sem-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}

.sem-card.active {
    border-color: var(--cyan);
    background: rgba(0, 240, 255, 0.05);
}

.sem-no {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 5px;
}

.sem-gpa {
    display: block;
    font-family: var(--font-display);
    font-weight: bold;
    color: var(--green);
}

/* --- Skills Section --- */
.skills-grid-advanced {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.skill-box h3 {
    font-family: var(--font-display);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tags span {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.skill-tags span i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.lang-switcher::after {
    content: attr(data-en);
    animation: switchLang 10s infinite;
}

@keyframes switchLang {

    0%,
    45% {
        content: attr(data-en);
        color: inherit;
    }

    50%,
    95% {
        content: attr(data-native);
        color: #ffd700;
        text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
    }

    100% {
        content: attr(data-en);
        color: inherit;
    }
}

.full-width {
    grid-column: span 2;
}

/* --- Projects Section --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
    padding: 30px;
    background: linear-gradient(180deg, rgba(17, 17, 24, 0.9) 0%, rgba(10, 10, 10, 0.95) 100%);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(rgba(0, 240, 255, 0.15) 1px, transparent 1px),
        linear-gradient(rgba(255, 0, 170, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 170, 0.03) 1px, transparent 1px);
    background-size: 20px 20px, 40px 40px, 40px 40px;
    background-position: 0 0, 10px 10px, 10px 10px;
    z-index: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
    opacity: 0.3;
    pointer-events: none;
}

.project-card:hover::before {
    opacity: 1;
    transform: scale(1.05);
    /* parallax feeling */
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--cyan), var(--magenta));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.project-card:hover::after {
    transform: scaleX(1);
}

.project-card.terminal-card {
    padding: 0;
}

.terminal-header {
    background: rgba(0, 0, 0, 0.4);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1;
}

.terminal-dots {
    display: flex;
    gap: 8px;
}

.t-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.t-red {
    background: #ff5f56;
}

.t-yellow {
    background: #ffbd2e;
}

.t-green {
    background: #27c93f;
}

.terminal-title {
    margin: 0 auto;
    font-family: var(--font-mono);
    color: #888;
    font-size: 0.8rem;
    padding-right: 44px;
    /* to offset the dots for perfect centering */
}

.terminal-card .project-content {
    padding: 25px 30px 30px;
}

.project-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    z-index: 1;
}

.project-content h3 {
    font-family: var(--font-display);
    color: white;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.project-tags span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 4px 10px;
    background: rgba(0, 240, 255, 0.05);
    color: var(--cyan);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 20px;
}

.project-content p {
    color: #bbb;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 25px;
}

.project-links {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

/* --- Certifications --- */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.cert-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.cert-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cert-info {
    padding: 20px;
}

.cert-info h3 {
    font-family: var(--font-display);
    color: white;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.cert-info p {
    color: #666;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

/* --- Intro Cards --- */
.intro-card {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    border-color: var(--magenta);
    border-width: 1px;
    background: linear-gradient(135deg, rgba(255, 0, 170, 0.05), transparent);
}

.intro-text {
    font-size: 1.1rem;
    font-style: italic;
    color: #ccc;
    line-height: 1.8;
}

/* Styling Links inside cards */
.glass-card p a {
    color: var(--cyan);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.glass-card p a:hover {
    color: var(--blue);
    text-decoration: underline;
}

/* --- Contact Section --- */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: var(--font-mono);
    color: #aaa;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 8px;
    color: white;
    font-family: var(--font-body);
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

/* --- Social Icons --- */
.social-icon {
    font-size: 1.3rem;
    color: #ccc;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.social-icon:hover {
    color: var(--black);
    background: var(--cyan);
    border-color: var(--cyan);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 240, 255, 0.3);
}

/* --- Footer --- */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    background: rgba(0, 0, 0, 0.5);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content p {
    font-family: var(--font-mono);
    color: #555;
    font-size: 0.9rem;
}

.status-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #555;
}

/* --- Gallery Section --- */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.photo-card {
    padding: 0;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(135deg, rgba(17, 17, 24, 0.9), rgba(10, 10, 10, 0.95));
}

.photo-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.photo-caption {
    padding: 18px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: #ccc;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Animations --- */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin-reverse {
    0% {
        transform: rotate(360deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7);
    }

    100% {
        box-shadow: 0 0 0 10px rgba(0, 255, 136, 0);
    }
}

@keyframes scroll-anim {
    0% {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, 10px);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Floating Kannada Letters --- */
.floating-kannada-letters {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    /* Behind most content but visible */
    overflow: hidden;
}

.float-letter {
    position: absolute;
    font-size: 8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.03);
    /* Very subtle transparency */
    text-shadow: 0 0 30px rgba(0, 240, 255, 0.05);
    /* very light cyan glow */
}

/* Base starting coordinates for each letter */
.f-1 {
    top: 15%;
    left: 10%;
}

.f-2 {
    top: 45%;
    right: 15%;
    color: rgba(0, 240, 255, 0.03);
    /* subtle cyan tint */
}

.f-3 {
    top: 75%;
    left: 20%;
    color: rgba(255, 0, 170, 0.03);
    /* subtle magenta tint */
}

/* --- Responsive --- */
@media (max-width: 968px) {
    .navbar {
        padding: 15px 20px;
    }

    .nav-links {
        display: none;
    }

    .hero-section {
        padding: 100px 20px;
        height: auto;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        margin-top: -40px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-visual {
        width: 250px;
        height: 250px;
        margin-top: 40px;
    }

    .section {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-grid,
    .passion-grid,
    .skills-grid,
    .projects-grid,
    .skills-grid-advanced {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: span 1;
    }

    .semesters-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* --- Hackathon Section Styles --- */
.hackathon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.hackathon-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hackathon-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #111;
    /* Fallback bg */
}

.hackathon-info {
    padding: 20px;
}

.hackathon-info h3 {
    font-family: var(--font-display);
    color: white;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.hackathon-info p {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* Link Button Style */
.btn-link {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0, 240, 255, 0.1);
    color: var(--cyan);
    border: 1px solid var(--cyan);
    border-radius: 6px;
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    transition: 0.3s;
}

.btn-link:hover {
    background: var(--cyan);
    color: #000;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}