/* Global Variables & Reset */
:root {
    --bg-color: #1a0303;
    --bg-gradient: linear-gradient(135deg, #0f0101 0%, #2e0505 100%);
    --text-color: #ffffff;
    --text-secondary: #d0d0d0;
    --accent-color: #ff3333;
    --accent-dark: #800000;
    --nav-bg: transparent;
    --font-main: 'Inter', system-ui, sans-serif;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --transition-speed: 0.3s;
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* Scrollbar Hide (Global helper) */
.cert-track {
    -ms-overflow-style: none;
    /* Internet Explorer 10+ */
    scrollbar-width: none;
    /* Firefox */
}

.cert-track::-webkit-scrollbar {
    display: none;
    /* Safari and Chrome */
}

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

html {
    background: var(--bg-color);
    background-image: var(--bg-gradient);
    background-attachment: fixed;
    min-height: 100%;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-speed);
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    font-family: inherit;
}

/* Utilities */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 6rem 0;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    font-size: 1rem;
    transition: all 0.4s var(--ease-out-back);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: #c91e1e;
    color: white;
    box-shadow: 0 4px 15px rgba(201, 30, 30, 0.4);
}

.btn-primary:hover {
    background-color: #e02f2f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 30, 30, 0.6);
}

.btn-outline {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(44, 5, 5, 0.8);
    backdrop-filter: blur(12px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    min-width: 160px;
    /* Prevent jitter during text scramble */
}

.nav-name {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.nav-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.nav-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #fff;
}

.nav-cta {
    display: block;
}

.btn-light {
    background: #fff;
    color: #000;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.menu-toggle {
    display: none;
    background: none;
    color: #fff;
    font-size: 1.5rem;
}

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

    .nav-cta {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links.open {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: #1a0202;
        padding: 2rem;
        align-items: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

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

.bg-text-wrapper {
    position: absolute;
    top: 35%;
    /* Moved up from 40% */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    z-index: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 0.85;
}

.giant-text {
    font-size: 14vw;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    /* Lower opacity for background effect */
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
    margin: 0;
    letter-spacing: -5px;
}

.giant-text.outlined {
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.1);
    text-shadow: none;
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    height: 100%;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    margin-top: 22vh;
    /* Moved down from 15vh */
}

.hero-left {
    padding-bottom: 0;
    padding-left: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.welcome-text {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #fff;
    text-align: left;
}

.hero-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 500px;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-align: left;
}

.hero-center-img {
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    height: 600px;
    margin-left: 0;
    margin-bottom: 0;
    z-index: 1;
}

.img-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    bottom: 50px;
    left: 40%;
    transform: translateX(-50%);
    z-index: -1;
}

.hero-profile-pic {
    height: 100%;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.5));
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    margin-left: -60px;
    /* Slight pull to left edge to ensure "proper left" look */
}

/* .hero-right removed */

.hero-actions {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    width: 100%;
    max-width: none;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    width: auto;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-github {
    background: rgba(40, 40, 40, 0.8);
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: auto;
    transition: all 0.3s;
}

.btn-github:hover {
    background: rgba(60, 60, 60, 0.9);
    transform: translateY(-2px);
}

@media (max-width: 1100px) {
    .giant-text {
        font-size: 18vw;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        text-align: center;
        align-items: center;
        gap: 2rem;
        margin-top: 5rem;
    }

    .hero-left {
        padding: 0;
        order: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-center-img {
        order: 1;
        height: 400px;
    }

    .hero-right {
        align-items: center;
        padding: 0;
        order: 3;
        padding-bottom: 2rem;
    }
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.image-frame {
    position: relative;
    width: 300px;
    height: 350px;
    border-radius: 16px;
    /* "Little bit" rounded */
    /* overflow: visible; - Handled by .electric-border check or implicit override, 
       but explicit here helps if the class isn't added immediately or to be safe. 
       Actually, let's keep it visible so the effect works. */
    overflow: visible;
    background: var(--card-bg);
    /* border: 1px solid rgba(255, 255, 255, 0.1); - Remove border, let electric border take over? 
       Or keep it as subtle inner border. The prompt implies "replace" or "apply this effect". 
       Usually electric border replaces the static border. */
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
    /* Subtle fallback */
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: transform 0.3s;
    border-radius: 16px;
    /* Match parent */
    position: relative;
    z-index: 1;
    /* Ensure it stays above background layers but below canvas if needed, or interaction */
}

.image-frame:hover .profile-img {
    transform: scale(1.05);
}

.frame-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--accent-dark), transparent);
    opacity: 0.2;
}

.about-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.lead {
    font-size: 1.2rem;
    font-weight: 500;
    color: #fff !important;
}

.stats-row {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image-wrapper {
        margin-bottom: 2rem;
    }

    .stats-row {
        justify-content: center;
    }
}

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

.skill-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.4s var(--ease-out-back), border-color 0.3s;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.skill-category {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: #fff;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all 0.3s;
    border: 1px solid transparent;
}

.skill-tag:hover {
    background: rgba(128, 0, 32, 0.2);
    color: #fff;
    border-color: var(--accent-color);
}

/* Projects */
/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.project-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.project-card.large {
    grid-column: span 3;
}

.project-card.small {
    grid-column: span 2;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(157, 114, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.project-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

.project-card:first-child .project-title {
    color: #9d72ff;
}

.project-links {
    display: flex;
    gap: 0.8rem;
}

.icon-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    transition: all 0.2s ease;
}

.icon-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: #fff;
}

.project-desc {
    color: #aaa;
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.6;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.tag {
    font-size: 0.8rem;
    color: #ddd;
    background: rgba(255, 255, 255, 0.06);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 500;
}

@media (max-width: 900px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card.large,
    .project-card.small {
        grid-column: auto;
    }
}

/* Journey */
.journey-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.column-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.timeline {
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    padding-left: 2rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.6rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    background: var(--bg-color);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
}

.timeline-content h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #fff;
}

.timeline-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.journey-list {
    list-style: disc;
    margin-left: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.journey-list li {
    margin-bottom: 0.5rem;
}

.quote {
    color: var(--accent-color) !important;
    font-weight: 500;
}

.timeline-meta {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.timeline-tag {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
}


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

/* Beyond Code */
.section-intro {
    text-align: center;
    color: var(--text-secondary);
    max-width: 600px;
    margin: -2rem auto 3rem;
    font-size: 1.1rem;
}

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

.interest-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    text-align: center;
    transition: transform 0.4s var(--ease-out-back);
    border: 1px solid transparent;
}

.interest-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.interest-icon {
    color: #9d72ff;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.interest-icon svg {
    width: 48px;
    height: 48px;
    stroke: #9d72ff;
    filter: drop-shadow(0 0 2px rgba(157, 114, 255, 0.3));
}

.interest-card:hover .interest-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 6px rgba(157, 114, 255, 0.8));
}

.interest-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.interest-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Contact */
.contact-section {
    background: linear-gradient(to bottom, var(--bg-color), #050101);
    padding-bottom: 6rem;
}

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

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-card {
    background: #110505;
    /* Very dark red/black */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #fff;
    font-weight: 600;
}

/* Left Card: Get In Touch */
.contact-intro {
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.7;
    font-size: 1rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: auto;
}

.detail-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.2rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    transition: all 0.3s;
}

.detail-box:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.detail-icon {
    color: #9d72ff;
    /* Light purple default, or use accent color */
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-text {
    display: flex;
    flex-direction: column;
}

.detail-text .label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 2px;
}

.detail-text .value {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
}

/* Right Card: Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.form-group input,
.form-group textarea {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s, background 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(40, 40, 40, 0.8);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.full-width {
    width: 100%;
}

.success-message {
    margin-top: 1rem;
    background: rgba(46, 213, 115, 0.1);
    border: 1px solid rgba(46, 213, 115, 0.3);
    color: #2ed573;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: fadeIn 0.5s ease;
}

.success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(46, 213, 115, 0.2);
    padding: 6px;
    border-radius: 50%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

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



.btn-submit {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    /* Purple */
    border: none;
    font-size: 1.1rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

/* Connect Online Card */
.connect-online-card {
    background: #110505;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 3rem;
}

.connect-online-card h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #fff;
    font-weight: 600;
}

.connect-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.connect-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.connect-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    margin-top: 2rem;
}

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

/* Responsive */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding: 2rem;
    }
}

.method-label {
    display: block;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.method-item p {
    color: var(--text-secondary);
}

.contact-btn {
    display: inline-block;
    font-size: 1.1rem;
    padding: 1rem 2rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 4rem;
}

.contact-links h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.social-link {
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: 0.3s;
    display: inline-block;
    width: fit-content;
}

.social-link:hover {
    color: var(--accent-color);
    transform: translateX(10px);
}

.footer-copyright {
    margin-top: auto;
    padding-top: 3rem;
    color: #555;
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .contact-links {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 3rem;
    }
}

/* Electric Border Effect */
.electric-border {
    --electric-border-color: #5227FF;
    --electric-light-color: #fff;
    position: relative;
    border-radius: inherit;
    overflow: visible;
    isolation: isolate;
}

.eb-canvas-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 2;
}

.eb-canvas {
    display: block;
}

.eb-content {
    position: relative;
    border-radius: inherit;
    z-index: 1;
}

.eb-layers {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
}

.eb-glow-1,
.eb-glow-2,
.eb-background-glow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-sizing: border-box;
}

.eb-glow-1 {
    border: 2px solid rgba(82, 39, 255, 0.6);
    filter: blur(1px);
}

.eb-glow-2 {
    border: 2px solid var(--electric-light-color);
    filter: blur(4px);
}

.eb-background-glow {
    z-index: -1;
    transform: scale(1.1);
    filter: blur(32px);
    opacity: 0.3;
    background: linear-gradient(-30deg, var(--electric-light-color), transparent, var(--electric-border-color));
}

/* Target Cursor Effect */
.target-cursor-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: exclusion;
    transform: translate(-50%, -50%);
}

.target-cursor-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    will-change: transform, opacity;
    opacity: 0;
    /* Hide by default */
    transition: opacity 0.3s ease;
}

.target-cursor-corner {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 12px;
    border: 3px solid #fff;
    will-change: transform, opacity;
    opacity: 0;
    /* Hide by default */
    transition: opacity 0.3s ease;
}

.corner-tl {
    transform: translate(-150%, -150%);
    border-right: none;
    border-bottom: none;
}

.corner-tr {
    transform: translate(50%, -150%);
    border-left: none;
    border-bottom: none;
}

.corner-br {
    transform: translate(50%, 50%);
    border-left: none;
    border-top: none;
}

.corner-bl {
    transform: translate(-150%, 50%);
    border-right: none;
    border-top: none;
}

/* Certifications Carousel */
.section-subtitle {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-description {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 800px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

.section-helper {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    margin-bottom: 3rem;
    font-style: italic;
}

.cert-carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cert-track {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    padding: 2rem 1rem;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.cert-card {
    min-width: 350px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.5rem;
    scroll-snap-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.cert-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(82, 39, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    /* Soft glow effect */
}

.cert-category {
    background: rgba(125, 249, 255, 0.1);
    color: #7df9ff;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    align-self: flex-start;
    margin-bottom: 1rem;
    border: 1px solid rgba(125, 249, 255, 0.2);
}

.cert-img-wrapper {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    position: relative;
}

.cert-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #1a1a1a, #2a2a2a);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cert-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: #fff;
    line-height: 1.4;
    min-height: 3.4em;
    /* Ensure uniform height for titles */
}

.cert-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.8rem;
}

.cert-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.cert-skills span {
    font-size: 0.75rem;
    color: #ccc;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
}

.btn-view {
    margin-top: auto;
    width: 100%;
    padding: 0.8rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    /* Ensure it behaves like a button */
    align-items: center;
    justify-content: center;
    text-decoration: none;
    /* Remove underline for anchor */
}

.btn-view:hover {
    background: #fff;
    color: #000;
}

/* Nav Arrows */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(5px);
    transition: all 0.3s;
}

.nav-arrow:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-50%) scale(1.1);
}

.nav-arrow.prev {
    left: -20px;
}

.nav-arrow.next {
    right: -20px;
}

/* Indicators */
.cert-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.cert-dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.cert-dot.active {
    background: var(--accent-color);
    transform: scale(1.2);
    width: 24px;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .cert-card {
        min-width: 85vw;
    }

    .nav-arrow {
        display: none;
        /* Hide arrows on mobile, use swipe */
    }
}

/* Circular Gallery Styles */
#circular-gallery-container {
    cursor: grab;
}

#circular-gallery-container:active {
    cursor: grabbing;
}

/* Ensure canvas takes full height */
#circular-gallery-container canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* --- Certificate Modal (Lightbox) --- */
.cert-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 2rem;
}

.cert-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(125, 249, 255, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.cert-modal.active .modal-content {
    transform: scale(1);
}

.modal-image {
    display: block;
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 0, 0, 0.5);
    transform: rotate(90deg);
}

/* Liquid Ether Background */
.liquid-ether-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: block;
    pointer-events: auto;
    /* Allow mouse interaction */
}

/* Shiny Text Effect */
.shiny-text {
    color: #b5b5b5;
    background: linear-gradient(120deg, #b5b5b5 40%, #ffffff 50%, #b5b5b5 60%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    animation: shine 3s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}



/* True Focus Animation */
.focus-container {
    position: relative;
    display: flex;
    gap: 0.5em;
    /* Adjusted gap for better spacing */
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    outline: none;
    user-select: none;
}

.focus-word {
    position: relative;
    font-size: inherit;
    /* Inherit font size from section-title */
    font-weight: inherit;
    cursor: pointer;
    transition: filter 0.3s ease, color 0.3s ease;
    outline: none;
    user-select: none;
    filter: blur(5px);
    /* Default blur */
}

.focus-word.active {
    filter: blur(0);
}



.focus-frame {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    box-sizing: content-box;
    border: none;
    transition: all 0.5s ease;
    /* CSS transition instead of framer-motion */
    opacity: 0;
    z-index: 10;
}

.focus-frame.visible {
    opacity: 1;
}

.corner {
    position: absolute;
    width: 1rem;
    height: 1rem;
    border: 3px solid var(--border-color, #fff);
    filter: drop-shadow(0px 0px 4px var(--glow-color, rgba(255, 255, 255, 0.6)));
    border-radius: 3px;
    transition: none;
}

.top-left {
    top: -10px;
    left: -10px;
    border-right: none;
    border-bottom: none;
}

.top-right {
    top: -10px;
    right: -10px;
    border-left: none;
    border-bottom: none;
}

.bottom-left {
    bottom: -10px;
    left: -10px;
    border-right: none;
    border-top: none;
}

.bottom-right {
    bottom: -10px;
    right: -10px;
    border-left: none;
    border-top: none;
}

/* Hover Border Gradient Button */
.hover-border-gradient {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    padding: 1px;
    border-radius: 9999px;
    text-decoration: none;
    overflow: hidden;
    cursor: pointer;
}

.hover-border-gradient .btn-content {
    position: relative;
    z-index: 2;
    background: #000000;
    color: #ffffff;
    padding: 0.6rem 1.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
}

.hover-border-gradient .gradient-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent 0 60deg, #ffffff 60deg 120deg, transparent 120deg 180deg, #ffffff 180deg 240deg, transparent 240deg 300deg, #ffffff 300deg 360deg);
    transform: translate(-50%, -50%);
    animation: rotate 4s linear infinite;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s;
}

.hover-border-gradient:hover .gradient-bg {
    opacity: 1;
}

.hover-border-gradient .btn-content {
    background: #111;
    /* Slightly lighter than pure black for contrast */
}

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Magic Button (Hover Border Gradient) */
.btn-magic {
    position: relative;
    padding: 1px;
    /* The width of the border gradient */
    border-radius: 9999px;
    /* Rounded full */
    background: transparent;
    display: inline-block;
    text-decoration: none;
    overflow: hidden;
    isolation: isolate;
    /* Create stacking context */
}

/* The rotating gradient */
.btn-magic::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: conic-gradient(from 0deg at 50% 50%,
            transparent 0%,
            transparent 70%,
            white 100%);
    /* Visible part of the "border" */
    transform: translate(-50%, -50%);
    animation: rotate 3s linear infinite;
    z-index: -2;
}

/* The inner background covering the button */
.btn-magic::after {
    content: "";
    position: absolute;
    inset: 1px;
    /* Matches padding */
    background: #000;
    /* Dark inner background */
    border-radius: 9999px;
    z-index: -1;
}

.btn-magic-text {
    display: block;
    padding: 12px 24px;
    color: #fff;
    font-weight: 500;
    border-radius: 9999px;
    background: transparent;
    position: relative;
    z-index: 1;
}

/* Hover effects */
.btn-magic:hover::before {
    /* Optional: speed up rotation or change color */
    animation-duration: 1.5s;
}

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Nav Tab Animation */
.nav-links {
    position: relative;
    /* Ensure it doesn't collapse */
}

.nav-tab-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: transparent;
    padding: 0.25rem;
    border-radius: 9999px;
    /* Optional: creates a track */
    /* background: rgba(255, 255, 255, 0.05); */
}

.nav-link {
    position: relative;
    padding: 0.5rem 1.25rem;
    color: #fff;
    /* Default text color */
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    z-index: 2;
    /* Above slider */
    transition: color 0.3s ease;
    border-radius: 9999px;
    /* For individual click effect fallback */
    background: transparent;
}

/* Color for the active text on top of the dark/light slider */
.nav-link.active,
.nav-link:hover {
    color: #fff;
}

/* The sliding pill */
.nav-tab-slider {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 85%;
    /* Slightly smaller than wrapper */
    background: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    z-index: 1;
    /* Below text */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    /* Hidden initially or when not over valid link */
    pointer-events: none;
    width: 0;
    /* JS will set this */

    /* Optional: Use the gray color from screenshot */
    background: #2a2a2a;
}