/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1E90FF;
    --primary-dark: #1565C0;
    --primary-light: #64B5F6;
    --bg-dark: #0B0F1A;
    --bg-card: rgba(255, 255, 255, 0.02);
    --text-primary: #FFFFFF;
    --text-secondary: #B0C4DE;
    --border-light: rgba(255, 255, 255, 0.05);
    --border-accent: rgba(30, 144, 255, 0.3);
    --shadow-color: rgba(30, 144, 255, 0.2);
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 25% 0%, rgba(30, 144, 255, 0.03) 0%, transparent 25%),
        radial-gradient(circle at 75% 100%, rgba(30, 144, 255, 0.03) 0%, transparent 25%);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(30, 144, 255, 0.3), transparent);
    z-index: 1000;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #FFFFFF 0%, #B0C4DE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: clamp(2.2rem, 5vw, 3rem);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), transparent);
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    max-width: 700px;
    line-height: 1.7;
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

section {
    padding: 6rem 0;
    position: relative;
}

/* ===== NAVIGATION ===== */
.navbar {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    backdrop-filter: blur(10px);
    background: rgba(11, 15, 26, 0.8);
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.9;
}

.logo img {
    height: 52px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
    border-radius: 2px;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-links a.active {
    color: var(--primary);
}

.nav-links a.active::after {
    transform: scaleX(1);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--text-primary);
    padding: 0.875rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.3);
}

.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: left 0.5s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 144, 255, 0.4);
}

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

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-accent);
    color: var(--text-primary);
    box-shadow: none;
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(30, 144, 255, 0.1);
    transform: translateY(-2px);
}

/* ===== CARDS ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.card:hover {
    border-color: var(--border-accent);
    transform: translateY(-8px) scale(1.02);
    background: rgba(30,144,255,0.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.card:hover::before {
    transform: translateX(100%);
}

.card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.75rem;
}

.card p {
    font-size: 1rem;
    margin-bottom: 2rem;
}

.status-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(30,144,255,0.15), rgba(30,144,255,0.05));
    color: var(--primary);
    padding: 0.35rem 1rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-accent);
    letter-spacing: 0.5px;
}

/* ===== HERO ===== */
.hero {
    text-align: center;
    padding: 8rem 0 4rem;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(30,144,255,0.3), transparent);
}

.hero-subtitle {
    font-size: 1.35rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ===== FOOTER ===== */
.footer {
    padding: 4rem 0;
    border-top: 1px solid var(--border-light);
    background: rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(30,144,255,0.3), transparent);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-links a:hover::after {
    transform: scaleX(1);
}

.footer-copyright {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    opacity: 0.7;
}

/* ===== PROJECT PAGE ===== */
.project-header {
    padding: 4rem 0 2rem;
    text-align: center;
}

.project-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin: 1.5rem 0;
}

.project-section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-light);
}

.project-section:last-child {
    border-bottom: none;
}

.feature-list {
    list-style: none;
    margin: 2rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.feature-list li {
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-list li:hover {
    background: rgba(30,144,255,0.05);
    border-color: var(--border-accent);
    transform: translateX(5px);
}

.feature-list li::before {
    content: "→";
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ===== CONTACT PAGE ===== */
.contact-block {
    background: linear-gradient(135deg, rgba(255,255,255,0.02), rgba(30,144,255,0.02));
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 4rem;
    max-width: 700px;
    margin: 3rem auto 0;
    position: relative;
    overflow: hidden;
}

.contact-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.contact-item {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: rgba(0,0,0,0.2);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.03);
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: var(--border-accent);
    transform: translateX(10px);
    background: rgba(30,144,255,0.02);
}

.contact-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.contact-value {
    font-size: 1.75rem;
    font-weight: 600;
}

.contact-value a {
    color: var(--text-primary);
    text-decoration: none;
    position: relative;
    display: inline-block;
}

.contact-value a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.contact-value a:hover {
    color: var(--primary);
}

.contact-value a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ===== UTILITIES ===== */
.glow {
    transition: all 0.4s ease;
}

.glow:hover {
    box-shadow: 0 0 30px var(--shadow-color);
}

.text-accent {
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.mt-0 { margin-top: 0; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 4rem; }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 4rem; }

/* ===== LEGAL PAGES ===== */
.legal-container {
    max-width: 800px;
    margin: 4rem auto;
    padding: 3rem;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 24px;
}

.legal-container h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.legal-container h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

.legal-container h2::after {
    width: 40px;
}

.legal-container p {
    font-size: 1rem;
    line-height: 1.7;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 1280px) {
    .logo img {
        height: 60px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 0;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .logo img {
        height: 44px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .hero {
        padding: 4rem 0 2rem;
    }
    
    .contact-block {
        padding: 2rem;
    }
    
    .contact-value {
        font-size: 1.25rem;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .nav-links a {
        font-size: 0.9rem;
    }
    
    .contact-value {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.75rem 2rem;
    }
}

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

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.hero, .card, .contact-block {
    animation: fadeInUp 0.8s ease-out;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border-accent);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}