/* Base Variables */
:root {
    --primary: #2A2B2E;
    --secondary: #0066FF;
    --accent: #FF2E63;
    --background: #FAFAFA;
    --text: #2A2B2E;
    --gray: #666666;
    --light-gray: #EEEEEE;
    --gradient: linear-gradient(120deg, #0066FF, #FF2E63);
    --card-bg: rgba(255, 255, 255, 0.9);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --header-height: 70px;
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --primary: #FAFAFA;
    --background: #0A0A0B;
    --text: #FAFAFA;
    --gray: #999999;
    --light-gray: #222222;
    --card-bg: rgba(20, 20, 20, 0.9);
}

/* Reset & Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--background);
    transition: var(--transition);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

p {
    margin-bottom: 1rem;
}

/* Theme Toggle Styling */
.theme-toggle {
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
    width: 40px;
    height: 40px;
    outline: none;
}

.theme-toggle:hover {
    background: var(--light-gray);
}

.theme-toggle i {
    font-size: 1.2rem;
    color: var(--text);
    transition: var(--transition);
}

.theme-toggle:hover i {
    transform: rotate(15deg);
}

/* Focus styles for accessibility */
.theme-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent);
    color: white;
    padding: 8px;
    z-index: 1001;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Header & Navigation */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(250, 250, 250, 0.8);
    transition: var(--transition);
    height: var(--header-height);
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-image {
    height: 25px;
    width: auto;
    margin-left: 4px;
    object-fit: contain;
    transition: var(--transition);
    display: inline-block;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a:focus::after {
    width: 100%;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-icon {
    width: 24px;
    height: 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mobile-menu-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text);
    transition: var(--transition);
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--background);
    padding: 2rem;
    transition: var(--transition);
    z-index: 999;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav a {
    display: block;
    color: var(--text);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--light-gray);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 6rem 0; /* Removed horizontal padding */
    width: 100%;
    margin-top: var(--header-height);
    background: linear-gradient(120deg, 
        rgba(255, 192, 203, 0.2) 0%,
        rgba(230, 230, 250, 0.2) 100%
    );
}

.hero-content {
    max-width: 1200px;
    padding: 0 2rem; /* Added padding to content instead */
    margin: 0 auto;
    text-align: center;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(90deg, #4169E1, #FF69B4); /* Updated gradient colors */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.hero-grant {
    font-size: 1.2rem;
    color: #FF1493; /* Updated to match design */
    font-weight: 600;
    margin-bottom: 2.5rem;
}

/* Button Styles Update */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(90deg, #4169E1, #FF69B4);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent);
    transition: var(--transition);
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* Section Styles */
.section {
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text {
    color: var(--text);
}

.about-text ul {
    list-style: none;
    margin: 1rem 0;
}

.about-text li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.about-text li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Cards */
.about-cards {
    display: grid;
    gap: 2rem;
}

.info-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-5px);
}

/* Deliverables Grid */
.deliverables-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 0 auto;
    max-width: 1200px;
}

.deliverable-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.deliverable-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.deliverable-card.placeholder {
    visibility: hidden;
    pointer-events: none;
}

.deliverable-card:hover {
    transform: translateY(-10px);
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.member-content {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.member-content:hover {
    transform: translateY(-5px);
}

.role {
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 1rem;
}

/* News Section */
.news-grid {
    display: grid;
    gap: 2rem;
}

.news-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-date {
    color: var(--accent);
    font-weight: 500;
    display: block;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: var(--primary);
    color: var(--background);
    padding: 6rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
}

.footer h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-social .social-links {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: var(--background);
    font-size: 1.5rem;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 4rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--background);
    opacity: 0.8;
}

/* Custom Cursor */
.cursor {
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    mix-blend-mode: difference;
    z-index: 9999;
    transition: transform 0.2s ease;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .section {
        padding: 6rem 2rem;
    }
}

@media (max-width: 968px) {
    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .deliverables-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .deliverable-card.placeholder {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    .section {
        padding: 4rem 1.5rem;
    }

    .cursor {
        display: none;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .logo-image {
        height: 30px;
    }
}

@media (max-width: 576px) {
    .deliverables-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 0.8rem 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .theme-toggle {
        width: 36px;
        height: 36px;
    }

    .theme-toggle i {
        font-size: 1rem;
    }
}

/* Utility Classes */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.no-scroll {
    overflow: hidden;
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .cursor {
        display: none !important;
    }
}

/* Print Styles */
@media print {
    .header,
    .mobile-menu,
    .mobile-nav,
    .cursor,
    .btn {
        display: none !important;
    }

    .section {
        page-break-inside: avoid;
        padding: 20px 0;
    }

    body {
        color: #000;
        background: #fff;
    }

    a {
        text-decoration: none;
        color: #000;
    }

    @page {
        margin: 2cm;
    }
}

/* Dark Mode Specific Adjustments */
[data-theme="dark"] .header {
    background: rgba(10, 10, 11, 0.8);
}

[data-theme="dark"] .logo span {
    color: var(--accent);
}

[data-theme="dark"] .mobile-menu-icon span {
    background-color: var(--text);
}

[data-theme="dark"] .btn {
    color: var(--background);
}

[data-theme="dark"] .hero {
    background: radial-gradient(circle at top right,
        rgba(0, 102, 255, 0.05),
        rgba(255, 46, 99, 0.05));
}

/* Focus Styles */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Selection Style */
::selection {
    background: var(--accent);
    color: white;
}

/* Smooth Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}
