:root {
    /* Color Palette - Dark Modern Theme */
    --bg-color: #0a0a0f;
    --bg-darker: #050508;
    --primary-color: #4f46e5; /* Indigo */
    --primary-light: #6366f1;
    --primary-dark: #4338ca;
    --secondary-color: #06b6d4; /* Cyan accent */
    --text-color: #f1f5f9;
    --text-color-light: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    
    /* Typography */
    --body-font: 'Inter', sans-serif;
    --title-font: 'Poppins', sans-serif;
    
    /* Font Sizes */
    --biggest-font-size: 3rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.75rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.813rem;
    
    /* Font Weights */
    --font-regular: 400;
    --font-medium: 500;
    --font-semi-bold: 600;
    --font-bold: 700;
    
    /* Z-Index */
    --z-tooltip: 10;
    --z-fixed: 100;
    --z-modal: 1000;
    
    /* Animation Speeds */
    --transition-fast: 0.2s;
    --transition-normal: 0.4s;
    --transition-slow: 0.6s;
}

@media screen and (min-width: 968px) {
    :root {
        --biggest-font-size: 4.5rem;
        --h1-font-size: 3rem;
        --h2-font-size: 2.5rem;
        --h3-font-size: 1.5rem;
        --normal-font-size: 1.05rem;
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none; /* Custom cursor */
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Custom Cursor */
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-light);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--primary-light);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.15s ease-out, width 0.2s, height 0.2s, border-color 0.2s;
}

@media (max-width: 768px) {
    body {
        cursor: auto;
    }
    .cursor-dot, .cursor-outline {
        display: none;
    }
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--title-font);
    color: var(--text-color);
    font-weight: var(--font-semi-bold);
    line-height: 1.2;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--text-color);
    cursor: none;
}
@media (max-width: 768px) {
    a, button {
        cursor: pointer;
    }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Reusable Classes */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
}

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

.section-title::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    bottom: -10px;
    left: 25%;
}

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

.grid {
    display: grid;
    gap: 1.5rem;
}

/* Glassmorphism Classes */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 2rem;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.glass-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 0.5rem;
    font-family: var(--title-font);
    font-weight: var(--font-medium);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    cursor: none;
}
@media (max-width: 768px) { .btn { cursor: pointer; } }

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: width var(--transition-normal);
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.5);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background: rgba(99, 102, 241, 0.1);
    color: #fff;
    border-color: #fff;
}

/* Loader */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-darker);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s ease-out, visibility 0.5s;
}

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

.loader-title {
    font-size: 2rem;
    letter-spacing: 5px;
    margin-bottom: 2rem;
    background: linear-gradient(90deg, #fff, var(--primary-light), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulseText 1.5s infinite;
}

.progress-bar {
    width: 200px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    animation: loadProgress 1.5s ease-out forwards;
}

@keyframes pulseText {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes loadProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Navigation */
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
    background: transparent;
    transition: background-color var(--transition-normal), backdrop-filter var(--transition-normal);
}

.header.scroll-header {
    background: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.navbar {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--title-font);
    font-size: 1.5rem;
    font-weight: var(--font-bold);
    color: var(--text-color);
    letter-spacing: 1px;
}

.logo::after {
    content: '.';
    color: var(--primary-light);
}

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

.nav-link {
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
    color: var(--text-color-light);
    transition: color var(--transition-fast);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-light);
    transition: width var(--transition-normal);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-color);
}

.nav-link.active::after {
    width: 100%;
}

.nav-toggle, .nav-close {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile Nav */
@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        padding: 6rem 2rem;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: var(--z-fixed);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }

    .nav-menu.show-menu {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        row-gap: 2rem;
    }

    .nav-toggle, .nav-close {
        display: block;
    }

    .nav-close {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        font-size: 2rem;
    }
}

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

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-greeting {
    font-size: var(--h3-font-size);
    color: var(--primary-light);
    font-family: var(--title-font);
    font-weight: var(--font-medium);
}

.hero-name {
    font-size: var(--biggest-font-size);
    line-height: 1.1;
    background: linear-gradient(to right, #fff, var(--text-color-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title {
    font-size: var(--h3-font-size);
    color: var(--text-color-light);
    font-weight: var(--font-regular);
    min-height: 40px; /* Space for typing text */
}

.typing-text::after {
    content: '|';
    animation: blink 1s step-end infinite;
}

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

.hero-description {
    color: var(--text-color-light);
    font-size: var(--normal-font-size);
    max-width: 500px;
    margin-bottom: 1rem;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.hero-social {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-icon {
    font-size: 1.25rem;
    color: var(--text-color-light);
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.social-icon:hover {
    color: var(--primary-light);
    transform: translateY(-3px);
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    position: relative;
    width: 350px;
    height: 450px;
    border-radius: 2rem;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.hero-image-backdrop {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-color);
    border-radius: 2rem;
    z-index: 1;
    transition: transform var(--transition-normal);
}

.hero-image:hover .hero-image-backdrop {
    transform: translate(-10px, -10px);
}

/* Floating Tech Icons */
.floating-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--primary-light);
    z-index: 3;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.icon-1 { top: 10%; left: -25px; animation-delay: 0s; }
.icon-2 { bottom: 20%; right: -25px; animation-delay: 2s; }
.icon-3 { bottom: -20px; left: 20%; animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
}

.scroll-down a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color-light);
    font-size: var(--small-font-size);
    transition: color var(--transition-fast);
}

.scroll-down a:hover {
    color: var(--primary-light);
}

.scroll-down i {
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Responsive Hero */
@media screen and (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-title {
        min-height: 60px;
    }
    
    .hero-image {
        width: 300px;
        height: 380px;
    }
}

@media screen and (max-width: 425px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    .btn {
        width: 100%;
        text-align: center;
    }
    .hero-image {
        width: 250px;
        height: 320px;
    }
}

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

.about-description {
    color: var(--text-color-light);
    margin-bottom: 2rem;
}

.about-subtitle {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.interests-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.interest-tag {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: var(--small-font-size);
    transition: all var(--transition-fast);
}

.interest-tag:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.about-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.info-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
    transition: transform var(--transition-normal);
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
}

.card-icon {
    font-size: 2rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.card-title {
    font-size: var(--normal-font-size);
    margin-bottom: 0.5rem;
}

.card-text {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
}

@media screen and (max-width: 968px) {
    .about-container {
        grid-template-columns: 1fr;
    }
}
@media screen and (max-width: 425px) {
    .about-cards {
        grid-template-columns: 1fr;
    }
}

/* Timeline (Education & Activities) */
.timeline-container {
    max-width: 800px;
    margin: 0 auto;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: var(--glass-border);
}

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

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

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

.timeline-content {
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 1.5rem;
    left: -15px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 15px solid rgba(255,255,255,0.03); /* matches glass-bg */
}

.timeline-date {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-light);
    border-radius: 2rem;
    font-size: var(--smaller-font-size);
    font-weight: var(--font-medium);
    margin-bottom: 1rem;
}

.timeline-title {
    font-size: var(--h3-font-size);
    margin-bottom: 0.5rem;
}

.timeline-subtitle {
    color: var(--text-color-light);
    font-size: var(--normal-font-size);
    margin-bottom: 1rem;
    font-weight: var(--font-medium);
}

.timeline-list {
    margin-left: 1.25rem;
    list-style: disc;
    color: var(--text-color-light);
    font-size: var(--small-font-size);
}

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

.timeline-text {
    color: var(--text-color-light);
    font-size: var(--small-font-size);
}

.placeholder-card {
    border: 1px dashed var(--glass-border);
}
.placeholder-card:hover {
    border-style: solid;
}

/* Skills */
.skills-container {
    grid-template-columns: repeat(3, 1fr);
}

.skills-subtitle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-light);
}

.skills-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.skill-name {
    font-weight: var(--font-medium);
}

.skill-level {
    font-size: var(--smaller-font-size);
    color: var(--text-color-light);
    background: rgba(255,255,255,0.05);
    padding: 0.2rem 0.6rem;
    border-radius: 1rem;
}

@media screen and (max-width: 968px) {
    .skills-container {
        grid-template-columns: 1fr 1fr;
    }
}
@media screen and (max-width: 600px) {
    .skills-container {
        grid-template-columns: 1fr;
    }
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.project-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    transform-style: preserve-3d; /* For 3d hover effect applied via JS */
}

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

.project-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 8, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.view-details-btn {
    transform: translateY(20px);
    opacity: 0;
    transition: all var(--transition-normal);
}

.project-card:hover .view-details-btn {
    transform: translateY(0);
    opacity: 1;
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: var(--h3-font-size);
    margin-bottom: 0.5rem;
}

.project-short-desc {
    color: var(--text-color-light);
    font-size: var(--small-font-size);
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tech span {
    font-size: var(--smaller-font-size);
    color: var(--primary-light);
    background: rgba(99, 102, 241, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 1rem;
}

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

.project-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--small-font-size);
    color: var(--text-color);
    transition: color var(--transition-fast);
}

.project-link:hover {
    color: var(--primary-light);
}

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

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    z-index: var(--z-modal);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

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

.modal-content {
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.8) translateY(30px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--text-color-light);
    cursor: pointer; /* Needs to be pointer on desktop too for modal close ease */
    transition: color var(--transition-fast);
}

.close-modal:hover {
    color: var(--text-color);
}

.modal-title {
    font-size: var(--h2-font-size);
    margin-bottom: 1.5rem;
    padding-right: 2rem;
    color: var(--primary-light);
}

.modal-section {
    margin-bottom: 1.5rem;
}

.modal-section h4 {
    font-size: var(--normal-font-size);
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.modal-section p {
    color: var(--text-color-light);
    font-size: var(--small-font-size);
}

.modal-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Custom scrollbar for modal */
.modal-content::-webkit-scrollbar {
    width: 8px;
}
.modal-content::-webkit-scrollbar-track {
    background: var(--glass-bg);
    border-radius: 4px;
}
.modal-content::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 4px;
}
.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* CV Section */
.cv-container {
    text-align: center;
    max-width: 700px;
}

.cv-title {
    font-size: var(--h2-font-size);
    margin-bottom: 1rem;
}

.cv-text {
    color: var(--text-color-light);
    margin-bottom: 2rem;
}

.cv-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}
@media screen and (max-width: 425px) {
    .cv-buttons {
        flex-direction: column;
    }
}

/* Contact */
.contact-intro {
    text-align: center;
    color: var(--text-color-light);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.contact-card {
    text-align: center;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-icon {
    font-size: 2.5rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.contact-card-title {
    font-size: var(--normal-font-size);
    margin-bottom: 0.5rem;
}

.contact-card-data {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
    margin-bottom: 1.5rem;
    word-break: break-all;
}

.contact-button {
    margin-top: auto;
    font-size: var(--small-font-size);
    color: var(--primary-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform var(--transition-fast);
}

.contact-card:hover .contact-button {
    transform: translateX(5px);
}

@media screen and (max-width: 968px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media screen and (max-width: 425px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer */
.footer {
    background-color: var(--bg-darker);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--glass-border);
}

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

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-social-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    font-size: 1.25rem;
    color: var(--text-color-light);
    transition: all var(--transition-normal);
}

.footer-social-link:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.footer-copy {
    color: var(--text-color-light);
    font-size: var(--small-font-size);
    margin-bottom: 0.5rem;
}
.footer-built {
    color: rgba(148, 163, 184, 0.5);
    font-size: var(--smaller-font-size);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: -50%;
    right: 2rem;
    background: var(--primary-color);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
    z-index: var(--z-fixed);
    transition: bottom 0.4s, background 0.3s, transform 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.back-to-top:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
}

.back-to-top.show {
    bottom: 3rem;
}

/* Animations Classes (Triggered via IntersectionObserver) */
.animate-element {
    opacity: 0;
}

.fade-in {
    transform: translateY(0);
}

.fade-in.animated {
    animation: fadeIn 0.8s ease forwards;
}

.fade-in-right {
    transform: translateX(50px);
}
.fade-in-right.animated {
    animation: fadeInRight 0.8s ease forwards;
}

.slide-up {
    transform: translateY(40px);
}

.slide-up.animated {
    animation: slideUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.reveal {
    opacity: 0;
}
.reveal.active {
    opacity: 1;
}

.reveal.slide-up.active {
    animation: slideUp 0.8s ease forwards;
}
.reveal.slide-right.active {
    animation: fadeInRight 0.8s ease forwards;
    transform: translateX(0); /* handled by keyframe */
}
.reveal.slide-left.active {
    animation: fadeInLeft 0.8s ease forwards;
    transform: translateX(0); /* handled by keyframe */
}


.delay-1 { animation-delay: 0.2s !important; }
.delay-2 { animation-delay: 0.4s !important; }
.delay-3 { animation-delay: 0.6s !important; }
.delay-4 { animation-delay: 0.8s !important; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Magnetic effect class */
.magnetic-btn {
    /* JS handles the transform */
}
