/* --- 1. VARIABLES & RESET --- */

:root {
    /* Brand Colors (Constant) */
    --primary: #06b6d4;
    --secondary: #8b5cf6;
    --transition: all 0.3s ease-in-out;
    --header-height: 70px;
    --bottom-nav-height: 65px;
    /* DARK MODE COLORS (Default) */
    --bg-color: #0f172a;
    --text-color: #f1f5f9;
    --header-bg: rgba(15, 23, 42, 0.85);
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.1);
    --timeline-line: rgba(255, 255, 255, 0.1);
}


/* LIGHT MODE OVERRIDES - This fixes your whole page background */

body.light-mode {
    --bg-color: #f8fafc;
    --text-color: #1e293b;
    --header-bg: rgba(248, 250, 252, 0.85);
    --card-bg: #ffffff;
    --card-border: rgba(0, 0, 0, 0.08);
    --timeline-line: rgba(0, 0, 0, 0.1);
}

body.light-mode .timeline {
    border-left-color: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}


/* --- 2. HEADER (DESKTOP & COMMON) --- */

#main-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    backdrop-filter: blur(12px);
    /* Glassmorphism */
    -webkit-backdrop-filter: blur(12px);
    background-color: var(--header-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* Brand Styling */

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 1px;
    font-family: 'Courier New', monospace;
    /* Engineering vibe */
}

.logo-primary {
    color: var(--primary);
}

.logo-secondary {
    color: var(--secondary);
}

.tagline-container {
    display: none;
    /* Hidden on small mobile */
    margin-left: 15px;
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.8;
    border-left: 2px solid var(--secondary);
    padding-left: 10px;
    width: 200px;
    /* Fixed width for typing stability */
}

@media (min-width: 768px) {
    .tagline-container {
        display: block;
    }
}


/* Desktop Navigation */

.desktop-nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}


/* Cyber Underline Effect */

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.external {
    display: flex;
    align-items: center;
    gap: 4px;
}


/* Theme Toggle */

#theme-toggle {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    color: var(--text-color);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

#theme-toggle:hover {
    background: var(--hover-bg);
    border-color: var(--primary);
    color: var(--primary);
    transform: rotate(15deg);
}


/* --- 3. MOBILE RESPONSIVENESS --- */

.desktop-nav {
    display: flex;
}

.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    /* Hide desktop menu */
    /* App-Like Bottom Nav */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: var(--bottom-nav-height);
        background-color: var(--header-bg);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 1000;
        justify-content: space-around;
        align-items: center;
        padding-bottom: env(safe-area-inset-bottom);
        /* iOS safe area */
    }
    .mobile-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: var(--text-color);
        opacity: 0.6;
        font-size: 0.75rem;
        transition: var(--transition);
        width: 100%;
        height: 100%;
    }
    .mobile-link i {
        font-size: 1.4rem;
        margin-bottom: 4px;
    }
    /* Active State Animation for Mobile */
    .mobile-link.active {
        opacity: 1;
        color: var(--primary);
        transform: translateY(-5px);
    }
    .mobile-link.active i {
        color: var(--secondary);
    }
}


/* --- HERO SECTION STYLES --- */

.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
    /* Header spacing */
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 40px;
    z-index: 10;
}


/* Typography & Colors */

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 10px;
    letter-spacing: -2px;
}

.hero-title .kaw {
    color: var(--primary);
}

.hero-title .shik {
    color: var(--secondary);
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
}

.hero-tagline {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 40px;
    max-width: 600px;
}


/* CTA Buttons */

.hero-cta {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 14px 30px;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px rgba(6, 182, 212, 0.3);
}

.btn-secondary {
    background: var(--hover-bg);
    border: 1px solid var(--card-border);
    color: var(--text-color);
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}


/* Photo Visuals */

.photo-wrapper {
    position: relative;
    width: 350px;
    height: 350px;
    margin: auto;
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--card-bg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    z-index: 2;
    position: relative;
}

.photo-glow {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border-radius: 50%;
    filter: blur(25px);
    opacity: 0.2;
    z-index: 1;
}


/* Floating Badges */

.floating-badge {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    animation: float 4s ease-in-out infinite;
    z-index: 3;
}

.badge-1 {
    top: 10%;
    left: -10%;
}

.badge-2 {
    bottom: 20%;
    right: -5%;
    animation-delay: 1s;
}

.badge-3 {
    top: 50%;
    left: -15%;
    animation-delay: 2s;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}


/* Scroll Hint */

.scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.6;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--text-color);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary);
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
}


/* Mobile Stack */


/* --- MOBILE & TABLET RESPONSIVENESS --- */

@media (max-width: 992px) {
    .hero-section {
        height: auto;
        /* Allow height to grow with content */
        min-height: 100vh;
        /* Still take at least full screen */
        padding: 120px 20px 60px;
        /* Extra top padding for fixed headers */
        display: block;
        /* Better for content flow on mobile */
    }
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    .hero-visual {
        order: -1;
        /* Keeps photo at the top */
        margin-bottom: 20px;
        display: flex;
        justify-content: center;
    }
    .photo-wrapper {
        width: min(280px, 70vw);
        /* Responsive width: won't exceed screen */
        height: min(280px, 70vw);
        margin: 0 auto;
    }
    .hero-photo {
        border-width: 3px;
        /* Slightly thinner border for mobile */
    }
    /* Adjust floating badges so they don't go off-screen */
    .floating-badge {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    .badge-1 {
        top: 0;
        left: 0;
    }
    .badge-2 {
        bottom: 10%;
        right: 0;
    }
    .badge-3 {
        top: 40%;
        left: -5%;
    }
    .hero-tagline {
        margin: 0 auto 30px;
        font-size: 1rem;
    }
    .hero-cta {
        flex-direction: column;
        /* Stack buttons for easier tapping */
        align-items: center;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    .btn {
        width: 100%;
        /* Full width buttons on mobile */
        justify-content: center;
    }
    /* Hide scroll hint on mobile to save space */
    .scroll-hint {
        display: none;
    }
}


/* Extra fix for very small devices */

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .photo-wrapper {
        width: 220px;
        height: 220px;
    }
}


/* --- ABOUT SECTION STYLES --- */


/* Common Spacing */

.section-padding {
    padding: 100px 20px;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-color);
    /* Ensures full bg changes */
    transition: background-color 0.3s ease;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}


/* Titles */

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
    letter-spacing: 1px;
    color: var(--text-color);
}


/* Layout Grid - Fixed for Tablet/Mobile */

.about-content-wrapper {
    display: grid;
    /* Shows 2 columns from 768px and up */
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    align-items: start;
}


/* Glassmorphic Cards - Beautiful in both modes */

.about-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 25px;
    /* Softer shadow for Light Mode beauty */
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    color: var(--text-color);
}

.about-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.15);
}

.timeline-about {
    position: relative;
    border-left: 2px solid var(--timeline-line);
    margin-left: 15px;
    padding-left: 30px;
    margin-top: 20px;
}

.timeline-item1 {
    position: relative;
    margin-bottom: 35px;
    width: 100%;
    /* About items are always 100% width */
}

.timeline-item1 .dot1 {
    position: absolute;
    left: -37px;
    /* Centers the dot on the 15px margin line */
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 2px solid var(--secondary);
    z-index: 2;
}

.timeline-item1:hover .dot1 {
    background: var(--secondary);
    box-shadow: 0 0 10px var(--secondary);
    transform: scale(1.2);
}


/* Intro Text */

.intro-text {
    margin: 15px 0;
    line-height: 1.7;
    font-size: 1rem;
    opacity: 0.9;
}

.highlight {
    color: var(--primary);
    font-weight: 700;
}

.text-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid rgba(6, 182, 212, 0.2);
    transition: 0.3s;
}

.text-link:hover {
    border-bottom-color: var(--primary);
}

.blog-mention {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--card-border);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    opacity: 0.8;
}

.blog-mention i {
    color: var(--secondary);
    font-size: 1.1rem;
}


/* Info Grid */

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Default to 1 column for mobile safety */
    gap: 15px;
    background: var(--card-bg);
    padding: 20px;
    border-radius: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
    /* Label on top, Value on bottom for mobile */
    gap: 4px;
}

.info-item .label {
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--secondary);
    opacity: 0.8;
}

.info-item .value {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-color);
    word-break: break-word;
    /* Prevents long emails from breaking the box */
}


/* Fix for the Email Copy Wrapper */

.email-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
    width: fit-content;
}

.email-wrapper:hover .value {
    color: var(--primary);
}


/* Desktop Adjustment: Switch back to side-by-side */

@media (min-width: 768px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Two columns on desktop */
        gap: 20px;
    }
    .info-item {
        flex-direction: row;
        /* Label and Value on same line */
        align-items: center;
        gap: 10px;
    }
    .info-item .label {
        min-width: 70px;
        /* Aligns all values perfectly */
    }
}

.copy-tooltip {
    position: absolute;
    top: -35px;
    right: 0;
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    padding: 5px 10px;
    border-radius: 6px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.email-wrapper.copied .copy-tooltip {
    opacity: 1;
    transform: translateY(0);
}


/* Highlights Badges */

.highlights-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.badge {
    background: var(--hover-bg);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s;
}

.badge:hover {
    background: var(--primary);
    color: #fff;
}


/* Timeline */

.timeline-heading {
    margin-bottom: 25px;
    font-size: 1.25rem;
    font-weight: 700;
}

.timeline {
    position: relative;
    border-left: 2px solid var(--timeline-line);
    margin-left: 10px;
    padding-left: 30px;
}

.timeline-item1 {
    position: relative;
    margin-bottom: 35px;
}

.timeline-dot {
    position: absolute;
    left: -37px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 2px solid var(--secondary);
    transition: all 0.3s;
}

.timeline-item1:hover .timeline-dot {
    background: var(--secondary);
    box-shadow: 0 0 12px var(--secondary);
}

.timeline-content .date {
    display: inline-block;
    font-size: 0.75rem;
    background: var(--hover-bg);
    padding: 3px 10px;
    border-radius: 6px;
    margin-bottom: 8px;
    color: var(--secondary);
    font-weight: 600;
}

.timeline-content h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.timeline-content .institution {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 6px;
    font-style: italic;
}

.timeline-content .desc {
    font-size: 0.85rem;
    opacity: 0.7;
    line-height: 1.5;
}


/* Animations */

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}


/* Responsive Breakpoints */

@media (max-width: 992px) {
    .about-content-wrapper {
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .section-padding {
        padding: 80px 15px;
    }
    .about-content-wrapper {
        grid-template-columns: 1fr;
        /* Stacks on mobile phones */
        gap: 30px;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .timeline {
        padding-left: 20px;
    }
    .timeline-dot {
        left: -27px;
    }
}


/* --- SKILLS SECTION STYLES --- */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 10px;
}


/* Base Card Style */

.skill-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    /* Equal height cards */
}


/* Hover Effect: "Lift & Glow" */

.skill-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.05);
}


/* Icon Header */

.card-icon-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-icon-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.card-icon-header i {
    font-size: 2rem;
}


/* Specific Colors for Categories (Cyberpunk Theme) */

.icon-cyber {
    color: #ef4444;
}


/* Red for Security */

.icon-ai {
    color: #a855f7;
}


/* Purple for AI */

.icon-code {
    color: #3b82f6;
}


/* Blue for Coding */

.icon-iot {
    color: #22c55e;
}


/* Green for IoT */

.icon-tools {
    color: #f59e0b;
}


/* Orange for Tools */


/* Skill Chips/Tags Styling */

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tags span {
    font-size: 0.9rem;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    color: var(--text-color);
    transition: background 0.3s ease, color 0.3s ease;
    cursor: default;
    border: 1px solid transparent;
}


/* Hover on individual tags */

.skill-card:hover .skill-tags span:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}


/* Specialized Layout for Full Stack (Subgroups) */

.skill-subgroup {
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.skill-subgroup strong {
    color: var(--secondary);
    display: inline-block;
    width: 80px;
    /* Fixed width for alignment */
    font-weight: 600;
}

.skill-subgroup span {
    opacity: 0.9;
}


/* Light Mode Overrides */

body.light-mode .skill-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

body.light-mode .skill-tags span {
    background: rgba(0, 0, 0, 0.05);
    color: #334155;
}


/* Mobile Responsiveness */

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
        /* Stack cards */
        gap: 20px;
    }
    .skill-card {
        padding: 20px;
    }
    .card-icon-header h3 {
        font-size: 1.1rem;
    }
    /* Optimize tag size for touch */
    .skill-tags span {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}


/* --- PROJECTS SECTION STYLES --- */


/* Filter Tabs */

.filter-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    border-radius: 50px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    color: var(--text-color);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(6, 182, 212, 0.4);
}


/* Projects Grid */

.projects-grid {
    display: grid;
    /* Keeps cards nicely sized on all screens */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}


/* Project Card */

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 30px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    /* Soft shadow for Day Mode depth */
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.project-card:hover {
    transform: translateY(-12px);
    border-color: var(--secondary);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.1);
}


/* Light Mode specific tweak for hover */

body.light-mode .project-card:hover {
    background: #ffffff;
}

.project-tag {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--secondary);
    margin-bottom: 15px;
    display: inline-block;
}

.project-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text-color);
    font-weight: 700;
}

.project-card p {
    font-size: 0.95rem;
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}


/* Tech Stack Badges */

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.tech-stack span {
    font-size: 0.75rem;
    padding: 6px 14px;
    background: var(--hover-bg);
    color: var(--primary);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 8px;
    font-weight: 700;
    transition: 0.3s;
}

.tech-stack span:hover {
    background: var(--primary);
    color: white;
}


/* Buttons */

.project-links {
    display: flex;
    gap: 15px;
}

.p-btn {
    text-decoration: none;
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    color: var(--text-color);
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
}


/* Primary Button (Usually the "Live Link") */

.p-btn.primary {
    background: var(--text-color);
    color: var(--bg-color);
    border-color: var(--text-color);
}

.p-btn.primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}


/* Secondary Button (Usually "GitHub") */

.p-btn:not(.primary):hover {
    background: var(--hover-bg);
    border-color: var(--secondary);
    color: var(--secondary);
}


/* Footer Link */

.github-footer {
    text-align: center;
    margin-top: 60px;
    padding: 20px;
    border-radius: 15px;
    background: var(--hover-bg);
    display: inline-block;
    width: 100%;
}

.github-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: 0.3s;
}

.github-footer a:hover {
    color: var(--secondary);
    letter-spacing: 0.5px;
}


/* Mobile Adjustments */

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .project-card {
        padding: 20px;
    }
    .filter-btn {
        padding: 8px 18px;
        font-size: 0.8rem;
    }
}


/* --- PUBLICATIONS SECTION STYLES --- */

.publications-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
    /* Slightly more gap for breathing room */
}

.pub-card {
    display: flex;
    gap: 25px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 30px;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    /* Soft shadow for light mode elevation */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.pub-card:hover {
    background: var(--card-bg);
    border-color: var(--primary);
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}


/* Accent line on the left for a "Journal" feel */

.pub-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 4px;
    background: var(--primary);
    border-radius: 0 4px 4px 0;
    opacity: 0;
    transition: 0.3s;
}

.pub-card:hover::before {
    opacity: 1;
}

.pub-number {
    font-family: 'Courier New', monospace;
    font-weight: 800;
    color: var(--primary);
    font-size: 1.2rem;
    min-width: 30px;
}

.pub-content {
    flex: 1;
}

.pub-badges {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    align-items: center;
}

.pub-status {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.pub-status.accepted {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    /* Darker green for readability in light mode */
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.pub-status.published {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    /* Darker blue */
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.pub-tag {
    font-size: 0.75rem;
    color: var(--secondary);
    font-weight: 700;
    text-transform: uppercase;
}

.pub-title {
    font-size: 1.3rem;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--text-color);
    font-weight: 700;
}

.pub-authors {
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.85;
    margin-bottom: 10px;
}


/* Highlighting your name in the author list */

.pub-authors strong {
    color: var(--primary);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pub-venue,
.pub-location {
    font-size: 0.9rem;
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    color: var(--text-color);
}


/* Google Scholar Section */

.scholar-footer {
    text-align: center;
    margin-top: 80px;
    padding: 40px;
    border-top: 1px solid var(--card-border);
}

.scholar-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #4285f4;
    color: white;
    text-decoration: none;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
}

.scholar-btn:hover {
    background: #3367d6;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(66, 133, 244, 0.5);
}


/* Mobile Adjustments */

@media (max-width: 768px) {
    .publications-list {
        gap: 15px;
    }
    .pub-card {
        flex-direction: column;
        gap: 12px;
        padding: 20px;
    }
    .pub-card:hover {
        transform: translateY(-5px);
        /* Up instead of right on mobile */
    }
    .pub-number {
        font-size: 1rem;
    }
    .pub-title {
        font-size: 1.1rem;
    }
    .pub-badges {
        flex-wrap: wrap;
    }
}


/* --- EXPERIENCE SECTION STYLES (timeline-item2) --- */

.timeline-container {
    position: relative;
    max-width: 1100px;
    /* Slightly wider for better desktop spacing */
    margin: 60px auto;
    padding: 20px 0;
}


/* The Vertical Line - Centered for Desktop */

.timeline-container::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--timeline-line);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item2 {
    padding: 10px 50px;
    position: relative;
    width: 50%;
    /* Each item takes half the width on desktop */
    box-sizing: border-box;
    z-index: 1;
}


/* Directional positioning for Desktop */

.timeline-item2.left {
    left: 0;
    text-align: right;
}

.timeline-item2.right {
    left: 50%;
    text-align: left;
}


/* The Connection Dots - Perfectly Centered on the Line */

.timeline-dot {
    position: absolute;
    width: 44px;
    height: 44px;
    background: var(--bg-color);
    border: 3px solid var(--primary);
    border-radius: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    top: 25px;
    /* Aligned with card top */
}


/* Centering dots on the line */

.timeline-item2.left .timeline-dot {
    right: -22px;
}

.timeline-item2.right .timeline-dot {
    left: -22px;
}

.timeline-item2:hover .timeline-dot {
    transform: scale(1.15);
    background: var(--primary);
    color: white !important;
}


/* Experience Cards */

.exp-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 30px;
    border-radius: 20px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    text-align: left;
    /* Keep text readable inside the card */
    width: 100%;
    display: block;
}

.exp-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.1);
}

.exp-date {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--secondary);
    display: block;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.exp-header h3 {
    font-size: 1.3rem;
    margin: 5px 0;
    font-weight: 700;
    color: var(--text-color);
}

.exp-org {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary);
}


/* Details and Bullet Logic */

.exp-details {
    list-style: none;
    padding: 0;
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.7;
}

.exp-details li {
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.exp-details li::before {
    content: "▹";
    color: var(--primary);
    font-weight: bold;
    flex-shrink: 0;
}


/* Mobile Responsive Timeline (Stacks 100% width) */

@media (max-width: 850px) {
    .timeline-container::after {
        left: 31px;
    }
    .timeline-item2 {
        width: 100% !important;
        padding-left: 70px;
        padding-right: 20px;
        text-align: left !important;
        margin-bottom: 30px;
        left: 0 !important;
    }
    .timeline-dot {
        left: 11px !important;
        width: 38px;
        height: 38px;
        font-size: 1rem;
        top: 20px;
    }
}


/* --- CERTIFICATIONS STYLES --- */

.category-title {
    font-size: 1.5rem;
    margin: 40px 0 25px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.category-title i {
    color: var(--secondary);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}


/* Cert Card - Polished for Light/Dark balance */

.cert-card {
    display: flex;
    gap: 20px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 25px;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.cert-card:hover {
    background: var(--card-bg);
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.cert-icon {
    font-size: 2.2rem;
    color: var(--primary);
    flex-shrink: 0;
}

.cert-date {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-color);
    opacity: 0.6;
    display: block;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cert-info h4 {
    font-size: 1.15rem;
    margin-bottom: 6px;
    color: var(--text-color);
    font-weight: 700;
}

.institution {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 12px;
}

.cert-desc {
    font-size: 0.85rem;
    opacity: 0.8;
    line-height: 1.5;
    margin-bottom: 18px;
    color: var(--text-color);
}

.view-cert-btn {
    background: var(--hover-bg);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.view-cert-btn:hover {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}


/* Achievement Grid - Minimalist & Clean */

.achieve-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 10px;
}

.achieve-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 24px;
    border-radius: 16px;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.achieve-item:hover {
    border-color: var(--secondary);
    transform: scale(1.02);
}

.achieve-badge {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    background: var(--hover-bg);
    color: var(--secondary);
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 12px;
    display: inline-block;
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.achieve-item h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-color);
}


/* MODAL STYLES - Enhanced for Professionalism */

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-content {
    margin: auto;
    display: block;
    width: auto;
    max-width: 90%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #ffffff;
    font-size: 35px;
    font-weight: 300;
    cursor: pointer;
    transition: 0.3s;
    background: rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    background: var(--primary);
    transform: rotate(90deg);
}


/* Animations */

@keyframes zoom {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-content {
    animation: zoom 0.3s ease-out;
}


/* Mobile Adjustments */

@media (max-width: 768px) {
    .cert-card {
        flex-direction: row;
        /* Keep row for small icons */
        align-items: flex-start;
        padding: 20px;
    }
    .cert-icon {
        font-size: 1.8rem;
    }
    .modal-content {
        max-width: 95%;
        margin-top: 20%;
    }
}

@media (max-width: 480px) {
    .cert-card {
        flex-direction: column;
        /* Stack only on very small phones */
    }
}


/* --- LANGUAGES & VOLUNTEERING STYLES --- */

.lang-vol-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: start;
}

.sub-section-title {
    font-size: 1.4rem;
    margin-bottom: 25px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.sub-section-title i {
    color: var(--secondary);
}


/* Languages UI */

.languages-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.lang-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 18px 25px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    transition: 0.3s ease;
}

.lang-card:hover {
    border-color: var(--primary);
    transform: translateX(5px);
}

.lang-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lang-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-color);
}

.lang-level {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.proficiency-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--hover-bg);
    /* Subtle background for empty dots */
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.dot.filled {
    background: var(--primary);
    border-color: var(--primary);
    /* Glow only in dark mode, clean in light mode */
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}


/* Volunteering UI */

.vol-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.vol-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 25px;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.vol-card:hover {
    border-color: var(--secondary);
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

.vol-badge {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    background: var(--secondary);
    color: white;
    padding: 5px 12px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.3);
}

.vol-content h4 {
    font-size: 1.2rem;
    margin-bottom: 6px;
    padding-right: 100px;
    /* Space for badge */
    color: var(--text-color);
    font-weight: 700;
}

.vol-org {
    font-size: 0.95rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 12px;
    display: block;
}

.vol-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.85;
    color: var(--text-color);
}


/* Mobile Adjustments */

@media (max-width: 992px) {
    .lang-vol-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 580px) {
    .vol-badge {
        position: relative;
        top: 0;
        right: 0;
        display: inline-block;
        margin-bottom: 15px;
    }
    .vol-content h4 {
        padding-right: 0;
    }
    .lang-card {
        padding: 15px 20px;
    }
}


/* --- CONTACT SECTION STYLES --- */

.contact-wrapper {
    display: grid;
    /* Two columns from 993px up */
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.cta-message {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
    opacity: 0.9;
    color: var(--text-color);
}


/* Info Cards - Polished for Day Mode */

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.info-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 20px 25px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.copy-toast {
    position: absolute;
    right: 20px;
    top: 10px;
    /* Adjust based on your card layout */
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    /* Hidden state */
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    transition: all 0.3s ease;
    pointer-events: none;
}


/* Active state */

.info-card.copied .copy-toast {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.info-card:hover {
    background: var(--hover-bg);
    border-color: var(--primary);
    transform: translateX(8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.info-icon {
    font-size: 1.8rem;
    color: var(--primary);
}

.info-text span {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 800;
    opacity: 0.6;
    display: block;
    letter-spacing: 0.5px;
}

.info-text p {
    font-weight: 700;
    font-size: 1.05rem;
}


/* Social Links */

.social-connect h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    font-size: 1.4rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 50%;
    color: var(--text-color);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.social-icons a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-5px) rotate(8deg);
    border-color: var(--primary);
}


/* Form Styling - Deep Fix for Day Mode */

.contact-form-container {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.form-feedback {
    margin-top: 20px;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    display: none;
    /* Hidden by default */
    align-items: center;
    gap: 10px;
    animation: fadeIn 0.4s ease;
}

.form-feedback.success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.form-feedback.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}


/* Button Loading State */

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--hover-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 14px 18px;
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}


/* Day Mode focus state needs to be crisp */

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--card-bg);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.1);
}


/* Placeholder color fix */

::placeholder {
    color: var(--text-color);
    opacity: 0.4;
}

.submit-btn {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
}


/* Mobile Adjustments - Tablet and Phone */

@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        /* Stacks vertically */
        gap: 50px;
    }
    .contact-form-container {
        padding: 30px 20px;
    }
    .cta-message {
        text-align: center;
    }
    .contact-info-cards {
        align-items: center;
    }
    .info-card {
        width: 100%;
        max-width: 450px;
    }
    .social-connect {
        text-align: center;
    }
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }
    .info-card {
        padding: 15px;
        gap: 15px;
    }
}


/* --- FOOTER STYLES --- */

.main-footer {
    /* Uses a clean variable for background */
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--card-border);
    padding: 80px 20px 30px;
    margin-top: 50px;
    transition: background 0.3s ease, border-top 0.3s ease;
}


/* Day Mode specific footer background tweak if needed */

body.light-mode .main-footer {
    background: #fdfdfd;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}


/* Logo & Branding */

.footer-logo {
    font-size: 1.8rem;
    font-weight: 900;
    text-decoration: none;
    letter-spacing: -1.5px;
    display: block;
}

.footer-logo .kaw {
    color: var(--primary);
}

.footer-logo .shik {
    color: var(--secondary);
}

.footer-tagline {
    margin-top: 15px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    opacity: 0.8;
}

.footer-motto {
    font-size: 0.85rem;
    opacity: 0.5;
    margin-top: 12px;
    font-style: italic;
    color: var(--text-color);
}


/* Headings */

.footer-heading {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
}


/* Links List */

.footer-links {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.95rem;
    opacity: 0.7;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary);
    opacity: 1;
    transform: translateX(5px);
}

.blog-link {
    color: var(--secondary) !important;
    font-weight: 700 !important;
}


/* Social & Contact */

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    cursor: pointer;
    margin-bottom: 20px;
    opacity: 0.8;
    position: relative;
    transition: 0.3s;
    color: var(--text-color);
}

.footer-contact-item:hover {
    color: var(--primary);
    opacity: 1;
}

.footer-copy-toast {
    position: absolute;
    top: -30px;
    left: 20px;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 6px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.footer-contact-item.copied .footer-copy-toast {
    opacity: 1;
    transform: translateY(0);
}

.footer-social-icons {
    display: flex;
    gap: 18px;
    margin-top: 10px;
}

.footer-social-icons a {
    font-size: 1.5rem;
    color: var(--text-color);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.footer-social-icons a:hover {
    color: var(--secondary);
    opacity: 1;
    transform: translateY(-5px);
}


/* Bottom Bar */

.footer-divider {
    border: none;
    border-top: 1px solid var(--card-border);
    margin-bottom: 30px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 0.85rem;
    opacity: 0.6;
    color: var(--text-color);
    font-weight: 500;
}


/* Scroll Top Button - Enhanced */

.scroll-top {
    background: var(--hover-bg);
    border: 1px solid var(--card-border);
    color: var(--text-color);
    width: 45px;
    height: 45px;
    border-radius: 12px;
    /* Square-ish modern look */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.scroll-top:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(6, 182, 212, 0.3);
}


/* Mobile Responsiveness */

@media (max-width: 768px) {
    .main-footer {
        padding: 60px 20px 30px;
        text-align: center;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 40px;
    }
    .footer-links {
        justify-content: center;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        max-width: auto;
        margin: 0 auto;
    }
    .footer-contact-item {
        justify-content: center;
    }
    .footer-social-icons {
        justify-content: center;
    }
    .footer-bottom {
        flex-direction: column-reverse;
        gap: 25px;
    }
}

.footer-legal-links {
    display: inline-flex;
    gap: 10px;
    margin-left: 10px;
    list-style: none;
    padding: 0;
}

.footer-legal-links li {
    display: inline;
}

.footer-legal-links li:not(:last-child)::after {
    content: "|";
    margin-left: 10px;
    color: var(--text-secondary, #94a3b8);
}

.footer-legal-links a {
    text-decoration: none;
    color: inherit;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: #38bdf8;
    /* Adjust to your brand primary color */
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .footer-legal-links {
        margin-left: 0;
        justify-content: center;
        flex-wrap: wrap;
    }
}