/* --- PROJECTS PAGE STYLES --- */

/* 2. MOBILE & TABLET (Standard Scrolling) */
body {
    height: auto !important;
    overflow-y: auto !important;
    background-color: #0d0d0d;
}

.projects-section {
    padding-top: 100px; /* Mobile spacing */
    padding-bottom: 50px;
    min-height: 100vh;
}

/* 3. LAPTOP & DESKTOP (Locked Body, Full Glass Stack) */
@media (min-width: 992px) {
    /* LOCK BODY SCROLL */
    body {
        height: 100vh !important;
        overflow: hidden !important; 
    }

    /* MAIN CONTAINER */
    .projects-section {
        /* CRITICAL FIX: Remove padding so content goes behind Navbar */
        padding-top: 0 !important; 
        height: 100vh; 
        display: flex;
        flex-direction: column;
        position: relative; 
    }
    
    .projects-section .container {
        height: 100%; 
        position: relative; 
        overflow: hidden; 
    }

    /* --- GLASS TITLE (Pinned Below Navbar) --- */
    .fixed-title-row {
        position: absolute; 
        /* Start 80px down, so it sits exactly under the Navbar */
        top: 80px; 
        left: 0;
        width: 100%;
        z-index: 50; 
        
        /* GLASS EFFECT */
        background: rgba(13, 13, 13, 0.2); 
        backdrop-filter: blur(10px);        
        -webkit-backdrop-filter: blur(10px); 
        
        /* Fade out at bottom */
        mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
        -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);

        padding-top: 10px;
        padding-bottom: 30px; 
        pointer-events: none; 
    }

    /* --- SCROLLABLE GRID AREA --- */
    .project-scroll-area {
        height: 100%; 
        width: 100%;
        overflow-y: auto; 
        
        /* PUSH CONTENT DOWN */
        /* 80px (Nav) + 120px (Title) + Spacing = ~240px */
        /* This ensures cards start visible below the title */
        padding-top: 240px; 
        
        padding-left: 15px;
        padding-right: 15px;
        padding-bottom: 60px; 
        
        /* Hide Scrollbar */
        scrollbar-width: none; 
        -ms-overflow-style: none;
    }

    .project-scroll-area::-webkit-scrollbar {
        display: none;
    }

    /* Card Sizing */
    .project-card { height: 460px; }
    .card-image { height: 35%; }
    .card-content { padding: 16px; }
    
    .projects-section .row { height: auto; }
    .projects-section .col-lg-4 { height: auto; margin-bottom: 20px; }
}

/* --- FLOATING BOTTOM DISCLAIMER (Fixed) --- */
.bottom-disclaimer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 12px 0;
    
    background: #0d0d0d; 
    border-top: 1px solid #1a1a1a;
    
    color: #737373; 
    font-size: 11px;
    letter-spacing: 0.5px;
    font-family: 'Libre Baskerville', serif;
    
    z-index: 9999;
}

/* --- GLOBAL STYLES --- */
.page-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 5px;
    color: #f2f2f2;
    text-shadow: 0 4px 12px rgba(0,0,0,0.8);
}

.page-subtitle {
    color: #bfbfbf;
    font-style: italic;
    margin-bottom: 0;
    text-shadow: 0 4px 12px rgba(0,0,0,0.8);
}

/* Cards */
.project-card {
    background: rgba(64, 64, 64, 0.3);
    border: 1px solid #737373;
    border-radius: 16px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%; /* Mobile default */
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: #f2f2f2;
    background: rgba(64, 64, 64, 0.5);
}

/* Images */
.card-image {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #404040;
}
.card-image { height: 180px; } /* Mobile */
@media (min-width: 992px) { .card-image { height: 35%; } }

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.8) contrast(1.2);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.project-card:hover .card-image img {
    filter: grayscale(0%) brightness(1) contrast(1);
    transform: scale(1.05);
}

/* Content */
.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
@media (min-width: 992px) { .card-content { padding: 16px; } }

.card-header-custom {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.category-badge {
    color: #f2f2f2;
    border: 1px solid #f2f2f2;
    padding: 2px 6px;
    border-radius: 4px;
}

.project-year { color: #737373; }

.project-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: #f2f2f2;
    flex-shrink: 0;
}

.project-desc {
    color: #bfbfbf;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 12px;
    flex-shrink: 1;
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

@media (min-width: 992px) {
    .project-desc { 
        font-size: 0.85rem; 
        -webkit-line-clamp: 3; 
    }
}

/* Tech Stack */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex-shrink: 0;
    margin-top: auto;
}

.tech-stack span {
    font-size: 0.7rem;
    color: #0d0d0d;
    background-color: #bfbfbf;
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: 600;
}

/* =========================================
   ABOUT PAGE SPECIFIC STYLES
   ========================================= */

/* Section Headers (e.g., >> INSTALLED MODULES) */
.section-header {
    font-family: 'Courier Prime', monospace;
    color: #737373;
    font-size: 0.9rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
    font-weight: bold;
}

/* --- GENERIC SYSTEM CARD (Base for all About cards) --- */
.system-card {
    background: rgba(64, 64, 64, 0.3);
    border: 1px solid #737373;
    border-radius: 16px;
    padding: 25px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    height: 100%;
}

.system-card:hover {
    border-color: #f2f2f2;
    background: rgba(64, 64, 64, 0.5);
}

/* --- IDENTITY CARD (Top Section) --- */
.profile-frame {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid #f2f2f2;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto; /* Center on mobile */
}

.initials {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #f2f2f2;
}

.status-indicator {
    font-family: 'Courier Prime', monospace;
    font-size: 0.8rem;
    color: #00ff00; /* Hacker Green */
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pulsing-dot {
    width: 8px;
    height: 8px;
    background-color: #00ff00;
    border-radius: 50%;
    box-shadow: 0 0 8px #00ff00;
    animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

.identity-name {
    font-family: 'Playfair Display', serif;
    color: #f2f2f2;
    margin-bottom: 5px;
}

.identity-role {
    color: #bfbfbf;
    font-style: italic;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.identity-bio {
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* --- SKILL CHIPS --- */
.card-label {
    font-size: 0.75rem;
    color: #bfbfbf;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #404040;
    padding-bottom: 8px;
}

.skill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-chip {
    background: rgba(255, 255, 255, 0.1);
    color: #f2f2f2;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.skill-chip:hover {
    border-color: #f2f2f2;
    background: rgba(255, 255, 255, 0.2);
}

/* --- TIMELINE (Execution Log) --- */
.timeline {
    position: relative;
    border-left: 2px solid #404040;
    padding-left: 20px;
    margin-left: 10px;
}

.timeline-item {
    margin-bottom: 30px;
    position: relative;
}

/* The Dot */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -27px; /* Adjust based on border padding */
    top: 5px;
    width: 12px;
    height: 12px;
    background: #0d0d0d;
    border: 2px solid #bfbfbf;
    border-radius: 50%;
}

.timeline-item:hover::before {
    background: #f2f2f2;
    border-color: #f2f2f2;
}

.time-marker {
    font-family: 'Courier Prime', monospace;
    font-size: 0.75rem;
    color: #737373;
    margin-bottom: 5px;
}

.time-content h3 {
    font-size: 1.1rem;
    color: #f2f2f2;
    margin-bottom: 2px;
}

.time-content h4 {
    font-size: 0.9rem;
    color: #bfbfbf;
    font-style: italic;
    margin-bottom: 8px;
}

.time-content p {
    font-size: 0.9rem;
    color: #d9d9d9;
    line-height: 1.5;
}

/* --- HOBBY CARDS --- */
.hobby-card {
    text-align: center;
}

.hobby-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.hobby-card h3 {
    font-size: 1.1rem;
    color: #f2f2f2;
    margin-bottom: 5px;
}

.hobby-card p {
    font-size: 0.85rem;
    color: #bfbfbf;
}

/* Responsive Tweak for Profile Image */
@media (min-width: 768px) {
    .profile-frame {
        margin: 0;
        width: 120px;
        height: 120px;
    }
}


/* =========================================
   INTERESTS PAGE STYLES
   ========================================= */

/* --- MODULE 1: GARAGE (HOT WHEELS) --- */
.garage-card {
    border-left: 4px solid #ff0000; /* Racing Red Accent */
}

.garage-title {
    font-family: 'Rajdhani', sans-serif; /* Tech/Racing font */
    font-weight: 700;
    text-transform: uppercase;
    color: #f2f2f2;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.garage-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    border-radius: 8px;
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #f2f2f2;
    font-family: 'Rajdhani', sans-serif;
}

.stat-label {
    font-size: 0.7rem;
    color: #bfbfbf;
    text-transform: uppercase;
}

.garage-desc {
    color: #bfbfbf;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Digital Car Shelf */
.car-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.car-slot {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #404040;
    padding: 10px;
    border-radius: 6px;
    color: #737373;
    font-family: 'Courier Prime', monospace;
    font-size: 0.8rem;
    text-align: center;
    transition: 0.3s;
}

.car-slot:hover {
    border-color: #f2f2f2;
    color: #f2f2f2;
}

.car-slot.active {
    border-color: #ff0000;
    color: #f2f2f2;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.2);
}

/* --- MODULE 2: F1 TELEMETRY --- */
.f1-card {
    border-left: 4px solid #00ffcc; /* Petronas Green / Data Cyan */
}

.f1-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.f1-header h3 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
    font-size: 1.5rem;
}

.live-tag {
    color: #ff0000;
    font-size: 0.7rem;
    font-weight: bold;
    animation: blink 1s infinite;
}

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

.f1-text {
    color: #bfbfbf;
    font-family: 'Courier Prime', monospace;
    font-size: 0.9rem;
}

.track-svg {
    width: 100%;
    height: 60px;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.track-name {
    display: block;
    text-align: center;
    font-size: 0.7rem;
    color: #00ffcc;
    margin-top: 5px;
    font-family: 'Courier Prime', monospace;
}

/* --- MODULE 3: ARCHIVES (MYTHOLOGY) --- */
.myth-card {
    border-top: 1px solid #d4af37; /* Gold accent */
    background: linear-gradient(to bottom, rgba(212, 175, 55, 0.05), rgba(64, 64, 64, 0.3));
}

.myth-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.myth-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #f2f2f2;
    margin-bottom: 10px;
}

.myth-desc {
    font-family: 'Libre Baskerville', serif;
    font-size: 1rem;
    color: #d9d9d9;
    font-style: italic;
    max-width: 600px;
    margin: 0 auto;
}

.divider-line {
    width: 50px;
    height: 1px;
    background: #bfbfbf;
    margin: 20px auto;
}

.quote {
    font-family: 'Courier Prime', monospace;
    font-size: 0.8rem;
    color: #737373;
}

/* --- MOBILE TWEAKS --- */
@media (max-width: 768px) {
    .car-grid {
        margin-top: 20px;
    }
}

/* --- MODULE 4: DEFENSE (TACTICAL) --- */
.defense-card {
    border-left: 4px solid #ff9900; /* Tactical Amber */
    position: relative;
    overflow: hidden;
}

/* Optional: Subtle grid background pattern for the card */
.defense-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 153, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 153, 0, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.defense-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.status-badge {
    color: #ff9900;
    font-family: 'Courier Prime', monospace;
    font-size: 0.7rem;
    border: 1px solid #ff9900;
    width: fit-content;
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 5px;
    background: rgba(255, 153, 0, 0.1);
}

.defense-title {
    font-family: 'Rajdhani', sans-serif;
    color: #f2f2f2;
    font-weight: 700;
    font-size: 1.8rem;
    text-transform: uppercase;
    margin: 0;
}

.defense-desc {
    color: #bfbfbf;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Tactical Tags */
.tactical-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tac-item {
    font-family: 'Courier Prime', monospace;
    font-size: 0.75rem;
    color: #ff9900; /* Amber Text */
    background: rgba(255, 153, 0, 0.05);
    padding: 4px 8px;
    border-left: 2px solid #ff9900;
}

/* --- RADAR ANIMATION --- */
.radar-container {
    width: 120px;
    height: 120px;
    margin: 0 auto 10px auto;
    position: relative;
    border-radius: 50%;
    border: 1px solid rgba(255, 153, 0, 0.3);
    background: radial-gradient(circle, rgba(255, 153, 0, 0.1) 0%, transparent 70%);
    box-shadow: 0 0 15px rgba(255, 153, 0, 0.1);
}

/* Concentric Circles */
.radar-circle {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 60%; height: 60%;
    border-radius: 50%;
    border: 1px solid rgba(255, 153, 0, 0.2);
}

/* The Rotating Sweep */
.radar-sweep {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg, 
        transparent 0deg, 
        rgba(255, 153, 0, 0.4) 360deg
    );
    animation: radarSpin 2s linear infinite;
    mask-image: radial-gradient(transparent 10%, black 100%); /* Hollow center */
    -webkit-mask-image: radial-gradient(transparent 10%, black 100%);
}

@keyframes radarSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* A blinking dot (target) */
.radar-blip {
    position: absolute;
    top: 30%; right: 30%;
    width: 6px; height: 6px;
    background-color: #ff9900;
    border-radius: 50%;
    box-shadow: 0 0 5px #ff9900;
    animation: blinkTarget 2s infinite;
}

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

.radar-caption {
    font-family: 'Courier Prime', monospace;
    color: #ff9900;
    font-size: 0.7rem;
    letter-spacing: 1px;
}

/* --- MODULE 5: ROCKETRY (ORBITAL) --- */
.rocket-card {
    border-right: 4px solid #33ccff; /* Liquid Oxygen Blue */
    background: linear-gradient(to left, rgba(51, 204, 255, 0.05), rgba(64, 64, 64, 0.3));
}

.rocket-title {
    font-family: 'Rajdhani', sans-serif;
    color: #f2f2f2;
    font-weight: 700;
    font-size: 1.8rem;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.rocket-desc {
    color: #bfbfbf;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Engine Stats */
.engine-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.engine-box {
    display: flex;
    justify-content: space-between;
    background: rgba(51, 204, 255, 0.05);
    padding: 8px 12px;
    border-radius: 4px;
    border-left: 2px solid #33ccff;
}

.eng-name {
    color: #f2f2f2;
    font-family: 'Courier Prime', monospace;
    font-size: 0.8rem;
}

.eng-stat {
    color: #33ccff;
    font-family: 'Rajdhani', sans-serif;
    font-weight: bold;
    font-size: 0.9rem;
}

/* --- ROCKET ANIMATION CONTAINER --- */
.launch-pad {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

/* The Rocket Ship */
.rocket-body {
    width: 20px;
    height: 80px;
    background: #e0e0e0;
    border-radius: 50% 50% 4px 4px; /* Nose cone shape */
    position: relative;
    z-index: 10;
    animation: rumble 0.2s infinite; /* Shaking effect */
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.nose-cone {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 20px;
    border-bottom: 1px solid #ccc;
}

.fuselage {
    position: absolute;
    top: 30px; left: 5px;
    width: 10px; height: 10px;
    background: #33ccff; /* Logo color */
    border-radius: 50%;
}

.fins {
    position: absolute;
    bottom: 0;
    left: -8px;
    width: 36px;
    height: 12px;
    background: #a6a6a6;
    border-radius: 4px;
    z-index: -1;
}

/* The Flame */
.flame {
    position: absolute;
    bottom: -20px;
    left: 2px;
    width: 16px;
    height: 30px;
    background: linear-gradient(to bottom, #ffeb3b, #ff9800, transparent);
    border-radius: 0 0 50% 50%;
    filter: blur(2px);
    animation: flameFlicker 0.1s infinite alternate;
}

@keyframes rumble {
    0% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(1px) rotate(1deg); }
    50% { transform: translateY(0px) rotate(0deg); }
    75% { transform: translateY(1px) rotate(-1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes flameFlicker {
    from { height: 30px; opacity: 1; }
    to { height: 40px; opacity: 0.8; }
}

/* Altitude Text */
.altitude-meter {
    position: absolute;
    top: 10px; right: 10px;
    text-align: right;
}

.alt-text {
    font-family: 'Courier Prime', monospace;
    color: #33ccff;
    font-size: 0.7rem;
}


/* =========================================
   CONTACT PAGE (UPLINK) STYLES
   ========================================= */

.comms-card {
    border: 1px solid #737373;
    overflow: hidden; /* Contains the sidebar */
    padding: 0; /* Remove default padding to let grid fill */
    background: rgba(13, 13, 13, 0.4);
    backdrop-filter: blur(10px);
}

.comms-header {
    font-family: 'Courier Prime', monospace;
    color: #f2f2f2;
    font-size: 0.9rem;
    margin-bottom: 25px;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

/* --- LEFT SIDEBAR (PROTOCOLS) --- */
.comms-sidebar {
    background: rgba(255, 255, 255, 0.03);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-content {
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Signal Animation */
.signal-visual {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 5px;
    position: relative;
}

.signal-bar {
    width: 8px;
    background: #00ff00; /* Hacker Green */
    animation: signalBounce 1s infinite ease-in-out;
}
.bar-1 { height: 40%; animation-delay: 0s; }
.bar-2 { height: 80%; animation-delay: 0.1s; }
.bar-3 { height: 60%; animation-delay: 0.2s; }

.signal-text {
    position: absolute;
    top: 5px; right: 5px;
    font-size: 0.5rem;
    color: #00ff00;
    font-family: 'Courier Prime', monospace;
}

@keyframes signalBounce {
    0%, 100% { height: 20%; opacity: 0.5; }
    50% { height: 90%; opacity: 1; }
}

/* Protocol List */
.protocol-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1; /* Pushes Geo Tag to bottom */
}

.protocol-list li {
    margin-bottom: 25px;
}

.protocol-link {
    text-decoration: none;
    display: block;
    transition: 0.3s;
}

.protocol-link:hover .link-label { color: #f2f2f2; }
.protocol-link:hover .link-detail { color: #00ff00; }

.status-light {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    margin-right: 8px;
}
.status-light.online { background: #00ff00; box-shadow: 0 0 5px #00ff00; }
.status-light.idle { background: #ff9900; }

.link-label {
    display: block;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    color: #bfbfbf;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.link-detail {
    display: block;
    font-family: 'Courier Prime', monospace;
    font-size: 0.8rem;
    color: #737373;
    margin-top: 2px;
}

/* Geo Tag */
.geo-tag {
    margin-top: auto;
    font-family: 'Courier Prime', monospace;
    font-size: 0.7rem;
    color: #737373;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    position: relative;
}

.crosshair {
    position: absolute;
    top: 10px; right: 0;
    font-size: 1.2rem;
    color: #ff0000;
}
.geo-tag span { display: block; margin-bottom: 3px; }


/* --- RIGHT SIDE (FORM) --- */
.form-content {
    padding: 30px;
}

.tech-label {
    font-family: 'Courier Prime', monospace;
    color: #bfbfbf;
    font-size: 0.8rem;
    margin-bottom: 8px;
    display: block;
}

.tech-input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #404040;
    color: #f2f2f2;
    font-family: 'Courier Prime', monospace;
    border-radius: 4px;
    padding: 12px;
}

.tech-input:focus {
    background: rgba(0, 0, 0, 0.5);
    border-color: #f2f2f2;
    color: #00ff00;
    box-shadow: none;
    outline: none;
}

.tech-input::placeholder { color: #595959; }

/* Transmit Button */
.transmit-btn {
    width: 100%;
    background: #f2f2f2;
    color: #0d0d0d;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 2px;
    padding: 15px;
    border-radius: 4px;
    border: none;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}

.transmit-btn:hover {
    background: #00ff00; /* Turns Hacker Green on hover */
    color: #0d0d0d;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.4);
}

/* Responsive fixes */
@media (max-width: 768px) {
    .comms-sidebar { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .signal-visual { display: none; } /* Hide animation on small screens */
}
/* =========================================
   CONTACT PAGE LAYOUT FIXES
   ========================================= */

/* 1. MOBILE & TABLET (Normal Scroll Flow) */
@media (max-width: 991px) {
    .contact-section-override {
        height: auto !important; /* Allow scrolling */
        min-height: 100vh;
        padding-top: 100px !important; /* Push content below Navbar */
        padding-bottom: 60px !important; /* Space for footer */
        display: block !important; /* Disable flex centering on mobile */
    }

    .comms-card {
        margin-bottom: 20px; /* Space at bottom */
    }
    
    /* Make the card stack vertically */
    .comms-sidebar {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* 2. LAPTOP & DESKTOP (Single Screen / No Scroll) */
@media (min-width: 992px) {
    .contact-section-override {
        padding-top: 60px !important; /* Slight buffer from top */
        padding-bottom: 40px !important; /* Buffer from bottom footer */
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow: hidden; /* Lock scroll if it fits */
    }

    /* COMPACT MODE: Shrink elements to fit on Laptop Screens */
    .comms-header {
        margin-bottom: 15px; /* Less gap */
        padding-bottom: 8px;
    }

    .sidebar-content, .form-content {
        padding: 25px; /* Reduce internal padding */
    }

    .protocol-list li {
        margin-bottom: 15px; /* Tighter list */
    }

    .input-group-tech {
        margin-bottom: 10px !important; /* Tighter inputs */
    }

    .tech-input {
        padding: 8px 12px; /* Smaller input height */
        font-size: 0.9rem;
    }

    textarea.tech-input {
        height: 80px; /* Force shorter text area */
    }

    .transmit-btn {
        padding: 10px;
        margin-top: 5px;
    }
    
    /* Title Adjustments */
    .contact-title { font-size: 2.5rem; margin-bottom: 0; }
    .contact-subtitle { font-size: 0.9rem; margin-bottom: 10px; }
}

/* 3. EXTRA TALL SCREENS (Big Monitors) - Relax the shrinking */
@media (min-width: 992px) and (min-height: 900px) {
    .sidebar-content, .form-content { padding: 40px; }
    .protocol-list li { margin-bottom: 25px; }
    .input-group-tech { margin-bottom: 20px !important; }
    textarea.tech-input { height: auto; rows: 4; }
}
/* =========================================
   PROJECT CARD HOVER EFFECTS
   ========================================= */
.card {
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 255, 0, 0.3);
}

.card:active {
  transform: translateY(-4px) scale(1.01);
}
