/* Theme Variables */
:root {
    --primary-dark-indigo: #1f2937; /* Dark gray */
    --accent-teal: #3b82f6;         /* Bright blue */
    --accent-gold: #fbbf24;         /* Yellow */
    --dark-gray: #374151;           /* Gray */
    --text-light: #ffffff;
    --light-gray: #f3f4f6;
}

/* Base */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-dark-indigo);
    color: var(--text-light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { font-weight: 800; color: #fff; }

/* Utility-like classes (to avoid Tailwind config dependency) */
.bg-primary-dark-indigo { background-color: var(--primary-dark-indigo); }
.bg-dark-gray { background-color: var(--dark-gray); }
.text-neon-teal { color: var(--accent-teal); }
.text-neon-gold { color: var(--accent-gold); }
.text-white { color: #ffffff; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.border-neon-teal { border-color: var(--accent-teal); }
.border-neon-gold { border-color: var(--accent-gold); }
.border-gray-800 { border-color: #1f2937; }

/* Layout utilities */
.container { width: 100%; max-width: 1200px; margin: 0 auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-8 > * + * { margin-left: 2rem; }

/* Flexbox utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-stretch { align-items: stretch; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

/* Grid utilities */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Text utilities */
.text-center { text-align: center; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }
.text-7xl { font-size: 4.5rem; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.leading-tight { line-height: 1.25; }
.tracking-wider { letter-spacing: 0.05em; }

/* Responsive utilities */
@media (min-width: 768px) {
    .md\\:flex { display: flex; }
    .md\\:hidden { display: none; }
    .md\\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\\:text-2xl { font-size: 1.5rem; }
    .md\\:text-3xl { font-size: 1.875rem; }
    .md\\:text-4xl { font-size: 2.25rem; }
    .md\\:text-5xl { font-size: 3rem; }
    .md\\:text-6xl { font-size: 3.75rem; }
    .md\\:text-7xl { font-size: 4.5rem; }
    .md\\:py-32 { padding-top: 8rem; padding-bottom: 8rem; }
    .md\\:flex-row { flex-direction: row; }
    .md\\:space-x-8 > * + * { margin-left: 2rem; }
}

@media (min-width: 640px) {
    .sm\\:flex-row { flex-direction: row; }
}

/* Position utilities */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.z-10 { z-index: 10; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* Size utilities */
.w-full { width: 100%; }
.h-screen { height: 100vh; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-48 { height: 12rem; }
.h-64 { height: 16rem; }
.h-\\[300px\\] { height: 300px; }
.w-auto { width: auto; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-3xl { max-width: 48rem; }
.min-w-\\[280px\\] { min-width: 280px; }
.max-w-\\[320px\\] { max-width: 320px; }

/* Display utilities */
.hidden { display: none; }
.block { display: block; }

/* Overflow utilities */
.overflow-hidden { overflow: hidden; }
.overflow-x-hidden { overflow-x: hidden; }

/* Border utilities */
.border-t { border-top-width: 1px; }
.border { border-width: 1px; }

/* Background utilities */
.bg-opacity-90 { background-color: rgba(31, 41, 55, 0.9); }
.bg-opacity-80 { background-color: rgba(31, 41, 55, 0.8); }
.bg-opacity-95 { background-color: rgba(31, 41, 55, 0.95); }

/* Backdrop utilities */
.backdrop-blur-md { backdrop-filter: blur(12px); }

/* Shadow utilities */
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }

/* Transition utilities */
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; }
.transition-transform { transition-property: transform; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }

/* Hover utilities */
.hover\\:text-white:hover { color: #ffffff; }
.hover\\:text-neon-teal:hover { color: var(--accent-teal); }
.hover\\:scale-105:hover { transform: scale(1.05); }

/* Focus utilities */
.focus\\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }

/* Text size utilities */
.text-sm { font-size: 0.875rem; }
.text-md { font-size: 1rem; }
.text-3xl { font-size: 1.875rem; }
.text-5xl { font-size: 3rem; }

/* Margin utilities */
.mr-2 { margin-right: 0.5rem; }

/* Padding utilities */
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

/* Transform utilities */
.transform { transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); }
.scale-x-0 { --tw-scale-x: 0; }
.origin-left { transform-origin: left; }
.-translate-y-8 { --tw-translate-y: -2rem; }
.top-1\\/2 { top: 50%; }
.-translate-y-1\\/2 { --tw-translate-y: -50%; }

/* Animation utilities */
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}

/* Buttons */
.btn-primary {
    background: linear-gradient(45deg, var(--accent-teal), var(--accent-gold));
    color: var(--primary-dark-indigo);
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-block;
}
.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--accent-teal), 0 0 50px var(--accent-gold);
}
.btn-secondary {
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1.125rem;
    border: 2px solid var(--accent-teal);
    color: var(--accent-teal);
    background: rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-secondary:hover { background: var(--accent-teal); color: var(--primary-dark-indigo); box-shadow: 0 0 25px var(--accent-teal); }

/* Section Background Media */
.section-video-bg, .section-image-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1;
}
.section-video-bg { filter: brightness(0.25) contrast(1.2) saturate(1.2); }
.section-image-bg { filter: brightness(0.35) contrast(1.15) saturate(1.15); }
.section-overlay { position: absolute; inset: 0; background: rgba(17, 24, 39, 0.75); z-index: -1; }

/* Cards */
.skill-card {
    position: relative; overflow: hidden; border-radius: 0.75rem; padding: 2rem; border: 1px solid transparent;
    background: rgba(0,0,0,0.35); backdrop-filter: blur(6px); transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.12);
}
.skill-card::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 2px;
    background: linear-gradient(45deg, var(--accent-teal), var(--accent-gold));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude; z-index: -1;
    opacity: 0; transition: opacity 0.3s ease-in-out;
}
.skill-card:hover::before { opacity: 1; }
.skill-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 0 35px rgba(34, 211, 238, 0.5), 0 0 70px rgba(139, 92, 246, 0.35); }

/* Carousel */
.carousel-item { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease-in-out; }
.carousel-item.active { opacity: 1; z-index: 1; }

/* Badges */
.badge {
    display: inline-flex; align-items: center; background: var(--dark-gray); font-size: 0.875rem; padding: 0.5rem 1rem; border-radius: 9999px; font-weight: 600;
    border: 1px solid var(--accent-teal); color: #fff; transition: all 0.3s ease; box-shadow: 0 0 8px rgba(34, 211, 238, 0.2);
}
.badge:hover { box-shadow: 0 0 15px rgba(34, 211, 238, 0.4), 0 0 25px rgba(139, 92, 246, 0.3); transform: scale(1.05); }

/* Particle Background */
.particle-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; opacity: 0.25; }

/* Forms */
.form-label { color: var(--accent-gold); font-weight: 600; }
.form-input, .form-select, .form-textarea {
    width: 100%; padding: 1rem; border-radius: 0.5rem; background: var(--primary-dark-indigo);
    border: 1px solid #374151; color: #fff; transition: border-color 0.3s ease;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--accent-teal); }
.form-error { color: #fecaca; font-size: 0.875rem; margin-top: 0.25rem; display: none; }
.form-success { color: #86efac; font-weight: 600; display: none; }

/* Layout helpers */
.page-hero { position: relative; min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.page-section { position: relative; overflow: hidden; }

/* Site navigation standard sizing */
.site-nav {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}
.site-nav .brand-logo { height: 40px; width: auto; }
.site-nav .nav-links { align-items: center; gap: 2rem; }
.site-nav .nav-links { display: none; }
@media (max-width: 767.98px) {
    /* Force-hide desktop links on small screens to prevent overlap */
    .site-nav .nav-links { display: none !important; }
}
@media (min-width: 768px) {
    .site-nav .nav-links { display: flex; }
}
.site-nav .nav-links a { font-size: 1rem; font-weight: 600; letter-spacing: 0.01em; }
.site-nav .nav-links a:hover { text-decoration: none; }

/* Gradient utilities for digital literacy page */
.from-neon-teal { --tw-gradient-from: var(--accent-teal); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(0, 212, 255, 0)); }
.to-neon-gold { --tw-gradient-to: var(--accent-gold); }
.from-neon-gold { --tw-gradient-from: var(--accent-gold); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(255, 107, 107, 0)); }
.to-neon-teal { --tw-gradient-to: var(--accent-teal); }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }

/* Floating shapes animation for home page */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    background: linear-gradient(45deg, var(--accent-teal), var(--accent-gold));
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 40%;
    right: 30%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Hero logo animation */
.hero-logo {
    width: 300px;
    height: auto;
    animation: zoomIn 0.9s ease-out both;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
}
@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}

/* Enhanced hero animations */
.hero-animate-1 {
    animation: slideInFromTop 1s ease-out;
}

.hero-animate-2 {
    animation: slideInFromLeft 1s ease-out 0.3s both;
}

.hero-animate-3 {
    animation: slideInFromRight 1s ease-out 0.6s both;
}

.hero-animate-4 {
    animation: fadeInUp 1s ease-out 0.9s both;
}

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

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

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

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

/* Internships timeline: equal card sizes */
.timeline-item {
    width: 280px;
    min-height: 280px;
}
@media (min-width: 1024px) {
    .timeline-item {
        width: 300px;
        min-height: 300px;
    }
}
.timeline-item p { overflow-wrap: anywhere; }

/* Additional utility classes */
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.leading-relaxed { line-height: 1.625; }

/* Object fit utilities */
.object-cover { object-fit: cover; }

/* Opacity utilities */
.opacity-20 { opacity: 0.2; }
.opacity-40 { opacity: 0.4; }

/* Background color utilities */
.bg-black { background-color: #000000; }

/* Flex utilities */
.flex-1 { flex: 1 1 0%; }

/* Rounded utilities */
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }

/* Border radius utilities */
.border-radius-inherit { border-radius: inherit; }

/* Webkit mask utilities */
.webkit-mask { -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); }
.webkit-mask-composite { -webkit-mask-composite: xor; }

/* Mask composite utilities */
.mask-composite { mask-composite: exclude; }

/* Navigation specific styles */
.site-nav { border-bottom: 1px solid rgba(34, 211, 238, 0.2); }
.nav-links { gap: 2rem; }
.brand-logo { height: 3rem; width: auto; }
