/* 
   BrainBit Infotech - Future Tech Theme 
   Target Audience: 15-25 Years (Gen Z)
   Updated: Design Polish (Larger Fonts, Icons, Spacing)
*/

:root {
    /* Color Palette - Dark Mode Base */
    --bg-dark: #0f172a;
    /* Slate 900 */
    --bg-card: #1e293b;
    /* Slate 800 */
    --text-primary: #f8fafc;
    /* Slate 50 */
    --text-secondary: #cbd5e1;
    /* Slate 300 (Lightened for better contrast) */

    /* Neon Accents */
    --primary: #6366f1;
    /* Indigo 500 */
    --primary-glow: rgba(99, 102, 241, 0.6);
    --secondary: #ec4899;
    /* Pink 500 */
    --secondary-glow: rgba(236, 72, 153, 0.6);
    --accent: #10b981;
    /* Emerald 500 */

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --gradient-text: linear-gradient(to right, #818cf8, #c084fc, #f472b6);
    --gradient-card: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9));

    /* Spacing & Layout */
    --container-width: 1280px;
    /* Increased width */
    --header-height: 90px;
    /* Taller header */
    --radius-lg: 1.2rem;
    --radius-xl: 2rem;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    /* Modern Geometric Sans */
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 18px;
    /* Increased base font size */
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    /* Bolder headings */
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

h1 {
    font-size: 4.5rem;
}

/* Significantly larger */
h2 {
    font-size: 3.5rem;
}

h3 {
    font-size: 2.25rem;
}

h4 {
    font-size: 1.5rem;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    /* Fix for some browsers */
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.grid {
    display: grid;
    gap: 3rem;
}

/* Increased gap */
.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-4 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 3rem;
}

.section-py {
    padding: 8rem 0;
}

/* Increased section padding */
.text-center {
    text-align: center;
}

/* Components */

/* Icons */
i,
.fas,
.fab {
    font-size: 1.2em;
    /* Base icon size increase */
}

.text-5xl,
.text-6xl {
    font-size: 5rem !important;
    /* Force larger icons in cards */
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    /* Larger buttons */
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 10px 30px var(--primary-glow);
    /* Stronger shadow */
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px var(--primary-glow);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 30px var(--primary-glow);
}

/* Cards (Glassmorphism) */
.card {
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    padding: 3rem;
    /* More padding inside cards */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.05), transparent);
    pointer-events: none;
}

.card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

/* Header */
.site-header {
    height: var(--header-height);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Footer */
.site-footer {
    background: #020617;
    padding: 6rem 0 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-25px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
        box-shadow: 0 0 20px var(--primary-glow);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
        box-shadow: 0 0 40px var(--primary-glow);
    }
}

.animate-pulse {
    animation: pulse-glow 3s ease-in-out infinite;
}

/* Utilities */
.hidden {
    display: none;
}

.block {
    display: block;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    h3 {
        font-size: 1.8rem;
    }

    .section-py {
        padding: 4rem 0;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--bg-dark);
        padding: 2rem;
        flex-direction: column;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        gap: 1.5rem;
    }

    .nav-links.open {
        display: flex;
    }
}