/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #3b82f6;
    --secondary: #8b5cf6;
    --accent: #0ea5e9;
    --bg-light: #f9fafb;
    --bg-dark: #050505;
    --surface-light: #ffffff;
    --surface-dark: #0f0f0f;
    --border-light: #e5e7eb;
    --border-dark: #1f1f1f;
    --text-light: #111827;
    --text-dark: #f9fafb;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode {
    background: var(--bg-dark);
    color: var(--text-dark);
}

body.light-mode {
    background: var(--bg-light);
    color: var(--text-light);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: all 0.3s;
    padding: 1.5rem 0;
}

nav.scrolled, nav.menu-open {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
}

.dark-mode nav.scrolled, .dark-mode nav.menu-open {
    background: rgba(5, 5, 5, 0.9);
    border-bottom-color: var(--border-dark);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    cursor: pointer;
    text-transform: uppercase;
}



.nav-links {
    display: none;
    gap: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.nav-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
    opacity: 0.7;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
    opacity: 1;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-btn {
    padding: 0.5rem;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
}

.dark-mode .theme-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #f3f4f6;
}

.theme-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

.dark-mode .theme-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.theme-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

body:not(.dark-mode) .moon-icon {
    display: none;
}

body.dark-mode .sun-icon {
    display: none;
}

body:not(.dark-mode) .sun-icon {
    display: block;
}

body.dark-mode .moon-icon {
    display: block;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--text-light);
    border: 1px solid var(--border-light);
}

.dark-mode .btn-secondary {
    background: var(--surface-dark);
    color: var(--text-dark);
    border-color: var(--border-dark);
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.dark-mode .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-family: 'Space Grotesk', sans-serif;
    word-wrap: break-word;
}

.hero-description {
    font-size: 1.25rem;
    opacity: 0.8;
    margin-bottom: 2.5rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 768px) {
    .hero-actions {
        flex-direction: row;
        justify-content: flex-start;
    }
    
    .hero-description {
        margin-left: 0;
        margin-right: 0;
    }
}

.tech-stack {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 3rem;
    opacity: 0.6;
    transition: opacity 0.5s;
}

.tech-stack:hover {
    opacity: 1;
}

.tech-item {
    font-weight: 700;
    color: inherit;
}

.tech-divider {
    width: 1px;
    height: 1rem;
    background: currentColor;
    opacity: 0.3;
}

/* Loading Animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}


/* Logo Image */
.logo-image {
    height: 2.5rem;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    border-radius: 5px;
}

.footer-logo .logo-image {
    height: 2rem;
    width: auto;
    max-width: 120px;
    border-radius: 5px;
}
