/* Base Font Setup */
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Inter', sans-serif;
    background-color: #03001C;
    /* --- Hide default cursor --- */
    cursor: none;
}
/* --- Hide custom cursor on links/buttons --- */
a, button, select, input {
    cursor: none; /* Will be overridden by .cursor-pointer */
}
.cursor-pointer {
    cursor: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Exo 2', sans-serif;
    /* --- Added subtle letter spacing for futuristic feel --- */
    letter-spacing: 0.025em;
}
.font-poppins { font-family: 'Poppins', sans-serif; }
.font-montserrat { font-family: 'Montserrat', sans-serif; }

/* Liquid Glass UI Style - LIGHTER */
.glass-panel {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem; /* 16px */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.glass-panel-darker {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1rem; /* 16px */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ========== WHITE GLASS UI FOR PROJECTS & INSIGHTS ========== */

/* Project Cards - Enhanced White Glass */
.project-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
}

.project-card:hover {
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.4), 0 0 15px rgba(255, 255, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
}

/* Insights/Blog Cards - Enhanced White Glass */
#insights a.block {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    position: relative;
}

#insights a.block::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
}

#insights a.block:hover {
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.4), 0 0 15px rgba(255, 255, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
}

/* Glass Logo Background */
.glass-logo {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.95);
    border-radius: 0.75rem; /* 12px */
    padding: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 0 0 40px rgba(0, 194, 255, 0.3);
}
.glass-logo:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 1);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.8), 0 0 60px rgba(0, 194, 255, 0.5);
}

/* Footer Logo - White Neon Background */
footer .glass-logo {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.98);
    border-radius: 0.75rem;
    padding: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.7), 0 0 50px rgba(255, 255, 255, 0.5), 0 0 75px rgba(0, 194, 255, 0.4);
}
footer .glass-logo:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 1);
    box-shadow: 0 0 35px rgba(255, 255, 255, 0.9), 0 0 60px rgba(255, 255, 255, 0.7), 0 0 100px rgba(0, 194, 255, 0.6);
}

/* Glowing Edges */
.glow-edge-blue {
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5), 0 0 5px rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.3);
}
.glow-edge-white {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3), 0 0 5px rgba(255, 255, 255, 0.1);
}
.hover\:glow-edge-blue:hover {
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.7), 0 0 10px rgba(59, 130, 246, 0.5);
    border-color: rgba(59, 130, 246, 0.5);
}

/* Glowing Button */
.btn-glow-blue {
    background: linear-gradient(90deg, #3B82F6, #00C2FF);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
    transition: all 0.3s ease;
}
.btn-glow-blue:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.8), 0 0 15px rgba(0, 194, 255, 0.6);
}

/* Outline Glass Button */
.btn-glass-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}
.btn-glass-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
}

/* Gradient Text */
.text-gradient-blue {
    background: linear-gradient(90deg, #3B82F6, #00C2FF, #9333EA);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-gradient-blue-white {
    background: linear-gradient(90deg, #00C2FF, #FFFFFF);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Background Gradient */
.hero-bg-gradient {
    background: radial-gradient(circle at 50% 100%, #1a3a52, #05001c 60%);
}

/* White Glass Light Overlay Effect */
.white-glass-light {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 50%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* Enhanced Glass Panels with Light Effect */
.glass-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
}

/* Nav Link Underline */
.nav-link {
    position: relative;
    /* --- Added hover lift --- */
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
    display: inline-block;
}
.nav-link:hover {
    transform: translateY(-3px);
    color: #00C2FF;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #3B82F6, #00C2FF);
    transition: width 0.3s ease;
    box-shadow: 0 0 8px #3B82F6;
}
/* --- Active class drives width --- */
.nav-link.active::after {
    width: 100%;
}

/* Mobile link styles */
.mobile-link {
    display: block;
    transition: all 0.3s ease;
    position: relative;
}
.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3B82F6, #00C2FF);
    transition: width 0.3s ease;
}
.mobile-link:active::after,
.mobile-link:hover::after {
    width: 100%;
}

/* Navbar responsive styles */
#navbar {
    width: 100%;
    top: 0;
    backdrop-filter: blur(12px);
}

/* Responsive breakpoint adjustments */
@media (max-width: 1024px) {
    #desktop-nav {
        display: none !important;
    }
}

@media (min-width: 1025px) {
    #mobile-menu-btn {
        display: none !important;
    }
    #mobile-menu {
        display: none !important;
    }
}

/* Class to blur main content when menu is open */
.content-blur {
    filter: blur(8px);
    pointer-events: none;
    transition: filter 0.3s ease-out;
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 25px rgba(59, 130, 246, 1), 0 0 10px rgba(59, 130, 246, 0.8);
        transform: scale(1.03);
    }
}
.pulse-glow {
    animation: pulse 2.5s infinite ease-in-out;
}

/* Progress Bar Animation */
@keyframes fill-progress {
    from { width: 0%; }
}
.animate-progress {
    animation: fill-progress 2s ease-out forwards;
}

/* Client Logo Carousel */
@keyframes scroll-x {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}
.scrolling-wrapper {
    animation: scroll-x 25s linear infinite;
}
.pause-on-hover:hover .scrolling-wrapper {
    animation-play-state: paused;
}

/* Tech Stack "Tic-Tac-Toe" Animation */
.tech-grid-item {
    transition: all 0.4s ease-in-out;
    transform-style: preserve-3d;
    border-radius: 1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.tech-grid-item:hover {
    border-color: rgba(59, 130, 246, 0.5) !important;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.6), 0 0 15px rgba(0, 194, 255, 0.4), inset 0 0 20px rgba(59, 130, 246, 0.1) !important;
    transform: scale(1.05) translateY(-5px) !important;
}
.tech-grid-item:hover img {
    filter: brightness(1.2) drop-shadow(0 0 10px rgba(59, 130, 246, 0.6));
}
.tech-grid-highlight {
    border-color: #3B82F6;
    transform: scale(1.08) !important; /* Force scale */
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.7), 0 0 10px rgba(59, 130, 246, 0.5);
}

/* Floating animation for tech cards */
@keyframes float {
    0% { transform: translatey(0px); }
    50% { transform: translatey(-8px); }
    100% { transform: translatey(0px); }
}
.animate-float {
    animation: float 6s ease-in-out infinite;
}
/* When highlighted, stop floating and just use the pop scale */
.tech-grid-highlight.animate-float {
    animation: none;
}

/* Project Card Hover */
.project-card .project-content {
    transition: all 0.4s ease-in-out;
}
.project-card .project-hover-content {
    opacity: 0;
    transition: all 0.4s ease-in-out;
}
.project-card:hover .project-content {
    filter: blur(8px) brightness(0.4);
    transform: scale(1.05);
}
.project-card:hover .project-hover-content {
    opacity: 1;
}

/* Hero Graphic Elements */
#hero-scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, rgba(0,194,255,0), rgba(0,194,255,0.5), rgba(0,194,255,0));
    box-shadow: 0 0 10px rgba(0,194,255,0.5);
    animation: scan 8s linear infinite;
    opacity: 0.7;
}
@keyframes scan {
    0% { transform: translateY(-100px); }
    100% { transform: translateY(100vh); }
}
/* --- Subtle Dot Grid --- */
.subtle-dot-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(59, 130, 246, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
    z-index: -1;
}
.hero-corner {
    position: absolute;
    width: 40px;
    height: 40px;
    border-color: rgba(0, 194, 255, 0.5);
    z-index: 10;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #03001C;
}
::-webkit-scrollbar-thumb {
    background: #3B82F6;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #00C2FF;
}

/* --- Preloader Styles --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #03001C;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
    visibility: visible;
}
#preloader-icon {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 194, 255, 0.3);
    border-top-color: #00C2FF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
#preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* --- Scroll Fade-in Animation --- */
.fade-in-section {
    opacity: 0;
    /* --- Added slide up --- */
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Accessibility Focus Ring --- */
*:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.8) !important;
}
/* --- Custom styles for form inputs on focus --- */
input:focus, textarea:focus, select:focus {
    border-color: #3B82F6 !important;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5) !important;
    outline: none;
}

/* --- Section-Specific Animated Backgrounds --- */

/* Tech & Insights: Glowing Corners */
@keyframes glow-corners {
    0% { box-shadow: 0 0 60px -20px rgba(59, 130, 246, 0.1), 0 0 60px -20px rgba(0, 194, 255, 0.1); }
    50% { box-shadow: 0 0 80px -20px rgba(59, 130, 246, 0.3), 0 0 80px -20px rgba(0, 194, 255, 0.3); }
    100% { box-shadow: 0 0 60px -20px rgba(59, 130, 246, 0.1), 0 0 60px -20px rgba(0, 194, 255, 0.1); }
}
.bg-glow-corners {
    position: relative;
    background-color: #050221;
}
.bg-glow-corners::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 2rem;
    animation: glow-corners 8s ease-in-out infinite;
    pointer-events: none;
}

/* Statistics: Pulsing Blobs */
@keyframes pulse-blobs {
    0% { transform: scale(1) rotate(0deg); opacity: 0.3; }
    50% { transform: scale(1.2) rotate(45deg); opacity: 0.5; }
    100% { transform: scale(1) rotate(0deg); opacity: 0.3; }
}
.bg-pulse-blobs .blob1 {
    animation: pulse-blobs 15s infinite ease-in-out;
    animation-delay: 0s;
}
.bg-pulse-blobs .blob2 {
    animation: pulse-blobs 15s infinite ease-in-out;
    animation-delay: -5s;
}

/* --- Logo Neon Glow --- */
.logo-neon-glow {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 4px rgba(255, 255, 255, 0.4));
    transition: filter 0.3s ease;
}
.logo-neon-glow:hover {
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 8px rgba(255, 255, 255, 0.7));
}

/* --- Navbar Corners --- */
.navbar-corner {
    position: absolute;
    width: 15px;
    height: 15px;
    border-color: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    z-index: -1; /* Place behind nav content */
}
#navbar:hover .navbar-corner {
    border-color: rgba(255, 255, 255, 0.7);
}

/* --- Custom Cursor Styles --- */
#cursor-dot, #cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    transition: all 0.1s ease-out;
}
#cursor-dot {
    width: 8px;
    height: 8px;
    background-color: #00C2FF;
    box-shadow: 0 0 10px #00C2FF;
}
#cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(0, 194, 255, 0.5);
    transition: all 0.1s ease-out;
}
/* Cursor hover states */
body:has(a:hover, button:hover, .project-card:hover) #cursor-outline {
    transform: translate(-50%, -50%) scale(1.5);
    border-color: rgba(255, 255, 255, 0.8);
    opacity: 0.5;
}
body:has(a:hover, button:hover, .project-card:hover) #cursor-dot {
    opacity: 0;
}
@media (max-width: 768px) {
    #cursor-dot, #cursor-outline {
        display: none;
    }
    body { cursor: auto; }
    a, button, select, input { cursor: auto; }
    .cursor-pointer { cursor: auto; }
    
    /* Improve responsive typography */
    h1 { font-size: 1.875rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    /* Tech grid improvements for tablets/phones */
    #tech-grid {
        gap: 0.75rem;
    }
    .tech-grid-item {
        padding: 0.75rem !important;
    }
    .tech-grid-item:hover {
        transform: scale(1.02) translateY(-3px) !important;
    }
}

/* Extra small devices - 320px to 480px */
@media (max-width: 480px) {
    #tech-grid {
        gap: 0.5rem;
        grid-template-columns: repeat(2, 1fr);
    }
    .tech-grid-item {
        padding: 0.5rem !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        height: 7rem !important;
    }
    .tech-grid-item img {
        height: 1.75rem;
    }
    .tech-grid-item:hover {
        transform: scale(1.05) !important;
    }
}

/* Small devices - 481px to 640px */
@media (min-width: 481px) and (max-width: 640px) {
    #tech-grid {
        gap: 0.75rem;
        grid-template-columns: repeat(3, 1fr);
    }
    .tech-grid-item {
        padding: 0.75rem !important;
        height: 8.5rem !important;
    }
    .tech-grid-item img {
        height: 2rem;
    }
}

/* Medium devices - 641px to 768px */
@media (min-width: 641px) and (max-width: 768px) {
    #tech-grid {
        gap: 1rem;
        grid-template-columns: repeat(4, 1fr);
    }
    .tech-grid-item {
        padding: 1rem !important;
        height: 9rem !important;
    }
    .tech-grid-item img {
        height: 2.25rem;
    }
}

/* Large devices - 769px to 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    #tech-grid {
        gap: 1.5rem;
        grid-template-columns: repeat(4, 1fr);
    }
    .tech-grid-item {
        padding: 1.25rem !important;
        height: 10rem !important;
    }
    .tech-grid-item img {
        height: 2.5rem;
    }
}

/* Extra large devices - 1025px and above */
@media (min-width: 1025px) {
    #tech-grid {
        gap: 2rem;
        grid-template-columns: repeat(6, 1fr);
    }
    .tech-grid-item {
        padding: 1.5rem !important;
        height: 11rem !important;
    }
    .tech-grid-item img {
        height: 2.75rem;
    }
}

/* --- Project Modal Styles --- */
#modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100;
    display: none; /* Hidden by default */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
#project-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    z-index: 101;
    display: none; /* Hidden by default */
    opacity: 0;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}
#modal-overlay.show, #project-modal.show {
    display: grid; /* Use grid for modal to center */
    opacity: 1;
}
#project-modal.show {
    display: block;
    transform: translate(-50%, -50%) scale(1);
}

/* --- Service Modal Styles --- */
#service-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

#service-modal:not(.hidden) {
    display: flex !important;
}

#service-modal-overlay {
    animation: fadeIn 0.3s ease-in-out;
}

#service-modal-wrapper {
    animation: slideUp 0.3s ease-in-out;
}

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Futuristic Card Animations */
@keyframes card-glow {
    0%, 100% {
        box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.05);
    }
    50% {
        box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.1);
    }
}

@keyframes border-shine {
    0% {
        border-color: currentColor;
        opacity: 0.3;
    }
    50% {
        border-color: currentColor;
        opacity: 0.8;
    }
    100% {
        border-color: currentColor;
        opacity: 0.3;
    }
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Apply animations to cards */
.group:hover {
    animation: card-glow 2s ease-in-out;
}

#service-modal-body {
    color: #e5e7eb;
    line-height: 1.8;
}

#service-modal-body h1 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
}

#service-modal-body h2 {
    color: #fff;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

#service-modal-body p {
    color: #d1d5db;
    margin-bottom: 1rem;
    line-height: 1.7;
}

#service-modal-body ul {
    margin-bottom: 1rem;
    color: #d1d5db;
}

#service-modal-body li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
}

/* --- Contact Form Message --- */
#form-message {
    transition: all 0.3s ease;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}
#form-message.show {
    max-height: 100px;
    opacity: 1;
    margin-top: 1rem;
}

/* ========== TEAM IMAGE RESPONSIVE STYLING ========== */

/* About Section - Team Image Enhancement */
#about img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 1rem;
    transition: all 0.4s ease;
    display: block;
    max-width: 100%;
    aspect-ratio: 4/3;
}

#about img:hover {
    transform: scale(1.02) translateY(-4px);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.6), 0 0 60px rgba(0, 194, 255, 0.3) !important;
}

/* Extra Small Devices - 320px to 480px */
@media (max-width: 480px) {
    #about {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    #about h2 {
        font-size: 1.875rem;
        margin-bottom: 1rem;
    }
    
    #about p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 0.75rem;
    }
    
    #about img {
        max-width: 100%;
        border-radius: 1rem;
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    }
}

/* Small Devices - 481px to 640px */
@media (min-width: 481px) and (max-width: 640px) {
    #about {
        padding-top: 1.25rem;
        padding-bottom: 1.25rem;
    }
    
    #about h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    #about p {
        font-size: 0.975rem;
    }
    
    #about img {
        max-width: 100%;
        border-radius: 1rem;
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.45);
    }
}

/* Medium Devices - 641px to 768px (Tablet Portrait) */
@media (min-width: 641px) and (max-width: 768px) {
    #about {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    #about h2 {
        font-size: 2.25rem;
        margin-bottom: 1.25rem;
    }
    
    #about p {
        font-size: 1rem;
    }
    
    #about img {
        max-width: 100%;
        border-radius: 1.25rem;
        box-shadow: 0 0 25px rgba(59, 130, 246, 0.5);
    }
}

/* Large Tablets - 769px to 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    #about {
        padding-top: 1.75rem;
        padding-bottom: 1.75rem;
    }
    
    #about h2 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
    
    #about p {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    #about img {
        max-width: 95%;
        border-radius: 1.5rem;
        box-shadow: 0 0 30px rgba(59, 130, 246, 0.5), 0 0 15px rgba(0, 194, 255, 0.2);
    }
}

/* Small Desktop - 1025px to 1280px */
@media (min-width: 1025px) and (max-width: 1280px) {
    #about {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    #about h2 {
        font-size: 2.75rem;
        margin-bottom: 1.5rem;
    }
    
    #about p {
        font-size: 1.0625rem;
        line-height: 1.75;
    }
    
    #about img {
        max-width: 100%;
        border-radius: 1.5rem;
        box-shadow: 0 0 30px rgba(59, 130, 246, 0.5), 0 0 15px rgba(0, 194, 255, 0.25);
    }
}

/* Large Desktop - 1281px to 1920px */
@media (min-width: 1281px) and (max-width: 1920px) {
    #about {
        padding-top: 2.25rem;
        padding-bottom: 2.25rem;
    }
    
    #about h2 {
        font-size: 3rem;
        margin-bottom: 1.75rem;
    }
    
    #about p {
        font-size: 1.125rem;
        line-height: 1.8;
    }
    
    #about img {
        max-width: 100%;
        border-radius: 2rem;
        box-shadow: 0 0 35px rgba(59, 130, 246, 0.6), 0 0 20px rgba(0, 194, 255, 0.3);
    }
}

/* Extra Large Desktop - 1921px and above */
@media (min-width: 1921px) {
    #about {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
    
    #about h2 {
        font-size: 3.5rem;
        margin-bottom: 2rem;
    }
    
    #about p {
        font-size: 1.25rem;
        line-height: 1.9;
    }
    
    #about img {
        max-width: 90%;
        border-radius: 2rem;
        box-shadow: 0 0 40px rgba(59, 130, 246, 0.6), 0 0 25px rgba(0, 194, 255, 0.4);
    }
}

/* ========== LOCATION & MAP SECTION RESPONSIVE STYLING ========== */

/* Location Section - Base Styles */
#location {
    overflow: hidden;
}

#location h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

#location p {
    font-size: 1rem;
}

/* Map iframe responsive container */
#location iframe {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
}

.map-container {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    height: 0;
    overflow: hidden;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Extra Small Devices - 320px to 480px */
@media (max-width: 480px) {
    #location {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    #location h2 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    #location > div > p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    #location .glass-panel {
        padding: 1.5rem;
    }
    
    #location h3 {
        font-size: 1.5rem;
    }
    
    #location h4 {
        font-size: 0.95rem;
    }
}

/* Small Devices - 481px to 640px */
@media (min-width: 481px) and (max-width: 640px) {
    #location {
        padding-top: 1.25rem;
        padding-bottom: 1.25rem;
    }
    
    #location h2 {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    #location > div > p {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }
    
    #location .glass-panel {
        padding: 2rem;
    }
    
    #location h3 {
        font-size: 1.75rem;
    }
}

/* Medium Devices - 641px to 768px (Tablet Portrait) */
@media (min-width: 641px) and (max-width: 768px) {
    #location {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    #location h2 {
        font-size: 2.25rem;
        margin-bottom: 1rem;
    }
    
    #location > div > p {
        font-size: 0.975rem;
        margin-bottom: 1.5rem;
    }
    
    #location .glass-panel {
        padding: 2rem;
    }
    
    #location h3 {
        font-size: 1.875rem;
    }
}

/* Large Tablets - 769px to 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    #location {
        padding-top: 1.75rem;
        padding-bottom: 1.75rem;
    }
    
    #location h2 {
        font-size: 2.5rem;
        margin-bottom: 1.25rem;
    }
    
    #location > div > p {
        font-size: 1rem;
        margin-bottom: 1.75rem;
    }
    
    #location .glass-panel {
        padding: 2.25rem;
    }
    
    #location h3 {
        font-size: 2rem;
    }
}

/* Small Desktop - 1025px to 1280px */
@media (min-width: 1025px) and (max-width: 1280px) {
    #location {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    #location h2 {
        font-size: 2.75rem;
        margin-bottom: 1.5rem;
    }
    
    #location > div > p {
        font-size: 1.0625rem;
        margin-bottom: 2rem;
    }
    
    #location .glass-panel {
        padding: 2.5rem;
    }
    
    #location h3 {
        font-size: 2.125rem;
    }
}

/* Large Desktop - 1281px to 1920px */
@media (min-width: 1281px) and (max-width: 1920px) {
    #location {
        padding-top: 2.25rem;
        padding-bottom: 2.25rem;
    }
    
    #location h2 {
        font-size: 3rem;
        margin-bottom: 1.75rem;
    }
    
    #location > div > p {
        font-size: 1.125rem;
        margin-bottom: 2rem;
    }
    
    #location .glass-panel {
        padding: 2.75rem;
    }
    
    #location h3 {
        font-size: 2.25rem;
    }
}

/* Extra Large Desktop - 1921px and above */
@media (min-width: 1921px) {
    #location {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
    
    #location h2 {
        font-size: 3.5rem;
        margin-bottom: 2rem;
    }
    
    #location > div > p {
        font-size: 1.25rem;
        margin-bottom: 2.25rem;
    }
    
    #location .glass-panel {
        padding: 3rem;
    }
    
    #location h3 {
        font-size: 2.5rem;
    }
}

/* ========== PROJECTS & INSIGHTS RESPONSIVE STYLING ========== */

/* Projects Section - Base Styles */
#projects {
    position: relative;
}

#projects h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: bold;
}

#projects .grid {
    gap: 2rem;
}

.project-card {
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card img {
    transition: transform 0.4s ease;
}

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

/* Insights Section - Base Styles */
#insights {
    position: relative;
}

#insights h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: bold;
}

#insights .grid {
    gap: 2rem;
}

#insights a.block {
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    height: 100%;
}

#insights img {
    transition: transform 0.4s ease;
}

#insights a.block:hover img {
    transform: scale(1.05);
}

/* Extra Small Devices - 320px to 480px */
@media (max-width: 480px) {
    #projects {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    #projects h2 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    #projects .grid {
        gap: 1rem;
    }
    
    .project-card {
        border-radius: 0.875rem;
    }
    
    #insights {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    #insights h2 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    #insights .grid {
        gap: 1rem;
    }
    
    #insights a.block {
        border-radius: 0.875rem;
    }
    
    #insights img {
        height: 180px;
    }
}

/* Small Devices - 481px to 640px */
@media (min-width: 481px) and (max-width: 640px) {
    #projects {
        padding-top: 1.25rem;
        padding-bottom: 1.25rem;
    }
    
    #projects h2 {
        font-size: 2rem;
        margin-bottom: 1.25rem;
    }
    
    #projects .grid {
        gap: 1.25rem;
    }
    
    #insights {
        padding-top: 1.25rem;
        padding-bottom: 1.25rem;
    }
    
    #insights h2 {
        font-size: 2rem;
        margin-bottom: 1.25rem;
    }
    
    #insights .grid {
        gap: 1.25rem;
    }
    
    #insights img {
        height: 200px;
    }
}

/* Medium Devices - 641px to 768px (Tablet Portrait) */
@media (min-width: 641px) and (max-width: 768px) {
    #projects {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    #projects h2 {
        font-size: 2.25rem;
        margin-bottom: 1.5rem;
    }
    
    #projects .grid {
        gap: 1.5rem;
    }
    
    #insights {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    #insights h2 {
        font-size: 2.25rem;
        margin-bottom: 1.5rem;
    }
    
    #insights .grid {
        gap: 1.5rem;
    }
    
    #insights img {
        height: 220px;
    }
}

/* Large Tablets - 769px to 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    #projects {
        padding-top: 1.75rem;
        padding-bottom: 1.75rem;
    }
    
    #projects h2 {
        font-size: 2.5rem;
        margin-bottom: 1.75rem;
    }
    
    #projects .grid {
        gap: 1.75rem;
    }
    
    #insights {
        padding-top: 1.75rem;
        padding-bottom: 1.75rem;
    }
    
    #insights h2 {
        font-size: 2.5rem;
        margin-bottom: 1.75rem;
    }
    
    #insights .grid {
        gap: 1.75rem;
    }
    
    #insights img {
        height: 240px;
    }
    
    .project-card:hover {
        box-shadow: 0 0 30px rgba(59, 130, 246, 0.5), 0 0 20px rgba(255, 255, 255, 0.25) !important;
    }
    
    #insights a.block:hover {
        box-shadow: 0 0 30px rgba(59, 130, 246, 0.5), 0 0 20px rgba(255, 255, 255, 0.25) !important;
    }
}

/* Small Desktop - 1025px to 1280px */
@media (min-width: 1025px) and (max-width: 1280px) {
    #projects {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    #projects h2 {
        font-size: 2.75rem;
        margin-bottom: 2rem;
    }
    
    #projects .grid {
        gap: 2rem;
    }
    
    #insights {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    #insights h2 {
        font-size: 2.75rem;
        margin-bottom: 2rem;
    }
    
    #insights .grid {
        gap: 2rem;
    }
    
    #insights img {
        height: 260px;
    }
    
    .project-card:hover {
        box-shadow: 0 0 35px rgba(59, 130, 246, 0.6), 0 0 25px rgba(255, 255, 255, 0.3) !important;
    }
    
    #insights a.block:hover {
        box-shadow: 0 0 35px rgba(59, 130, 246, 0.6), 0 0 25px rgba(255, 255, 255, 0.3) !important;
    }
}

/* Large Desktop - 1281px to 1920px */
@media (min-width: 1281px) and (max-width: 1920px) {
    #projects {
        padding-top: 2.25rem;
        padding-bottom: 2.25rem;
    }
    
    #projects h2 {
        font-size: 3rem;
        margin-bottom: 2.25rem;
    }
    
    #projects .grid {
        gap: 2.25rem;
    }
    
    #insights {
        padding-top: 2.25rem;
        padding-bottom: 2.25rem;
    }
    
    #insights h2 {
        font-size: 3rem;
        margin-bottom: 2.25rem;
    }
    
    #insights .grid {
        gap: 2.25rem;
    }
    
    #insights img {
        height: 280px;
    }
    
    .project-card:hover {
        box-shadow: 0 0 40px rgba(59, 130, 246, 0.7), 0 0 30px rgba(255, 255, 255, 0.35) !important;
    }
    
    #insights a.block:hover {
        box-shadow: 0 0 40px rgba(59, 130, 246, 0.7), 0 0 30px rgba(255, 255, 255, 0.35) !important;
    }
}

/* Extra Large Desktop - 1921px and above */
@media (min-width: 1921px) {
    #projects {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
    
    #projects h2 {
        font-size: 3.5rem;
        margin-bottom: 2.5rem;
    }
    
    #projects .grid {
        gap: 2.5rem;
    }
    
    #insights {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
    
    #insights h2 {
        font-size: 3.5rem;
        margin-bottom: 2.5rem;
    }
    
    #insights .grid {
        gap: 2.5rem;
    }
    
    #insights img {
        height: 300px;
    }
    
    .project-card:hover {
        box-shadow: 0 0 50px rgba(59, 130, 246, 0.8), 0 0 40px rgba(255, 255, 255, 0.4) !important;
    }
    
    #insights a.block:hover {
        box-shadow: 0 0 50px rgba(59, 130, 246, 0.8), 0 0 40px rgba(255, 255, 255, 0.4) !important;
    }
}



/* Extra Small Devices - 320px to 480px */
@media (max-width: 480px) {
    #navbar {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
    
    .nav-link {
        font-size: 0.875rem;
    }
    
    .mobile-link {
        font-size: 1.25rem;
        padding: 0.75rem !important;
    }
    
    #mobile-menu {
        padding-top: 1rem;
    }
}

/* Small Devices - 481px to 640px */
@media (min-width: 481px) and (max-width: 640px) {
    #navbar {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
    
    .nav-link {
        font-size: 0.9375rem;
    }
    
    .mobile-link {
        font-size: 1.5rem;
        padding: 0.875rem !important;
    }
}

/* Medium Devices - 641px to 1024px (Tablet) */
@media (min-width: 641px) and (max-width: 1024px) {
    #navbar {
        padding-top: 0.875rem;
        padding-bottom: 0.875rem;
    }
    
    .nav-link {
        font-size: 0.95rem;
        margin: 0 0.25rem;
    }
    
    .mobile-link {
        font-size: 1.75rem;
        padding: 1rem !important;
    }
    
    #mobile-menu {
        gap: 1rem;
    }
}

/* Large Devices - 1025px to 1280px */
@media (min-width: 1025px) and (max-width: 1280px) {
    #navbar {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    .nav-link {
        font-size: 0.975rem;
        margin: 0 0.5rem;
    }
    
    #desktop-nav {
        display: flex !important;
        gap: 1rem;
    }
    
    .btn-glow-blue {
        padding: 0.5rem 1.25rem;
        font-size: 0.875rem;
    }
}

/* Extra Large Devices - 1281px and above */
@media (min-width: 1281px) {
    #navbar {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    .nav-link {
        font-size: 1rem;
        margin: 0 1rem;
    }
    
    #desktop-nav {
        display: flex !important;
        gap: 2rem;
    }
    
    .btn-glow-blue {
        padding: 0.5rem 1.25rem;
        font-size: 1rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .nav-link,
    .mobile-link {
        padding: 0.5rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    #mobile-menu {
        height: 100vh;
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;
    }
}

/* High Resolution Devices */
@media (min-width: 1920px) {
    #navbar {
        padding-top: 1.25rem;
        padding-bottom: 1.25rem;
    }
    
    .nav-link {
        font-size: 1.125rem;
    }
    
    .glass-logo {
        height: 3.5rem;
    }
}
