/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #0B0C10;
    --bg-dark: #050508;
    --slate-200: #e2e8f0;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --white: #ffffff;
    --indigo-500: #6366f1;
    --indigo-600: #4f46e5;
    --indigo-900: #312e81;
    --blue-400: #60a5fa;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-900: #1e3a8a;
    --emerald-400: #34d399;
    --emerald-500: #10b981;
    --orange-400: #fb923c;
    --orange-500: #f97316;
    --rose-400: #fb7185;
    --purple-400: #c084fc;
    --cyan-400: #22d3ee;
    --slate-text: #94a3b8;
    --green-400: #4ade80;
    --yellow-400: #facc15;
    --pink-400: #f472b6;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--slate-200);
    background-color: var(--bg-color);
    min-height: 100vh;
}

/* Background Gradients */
.bg-gradients {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(128px);
}

.gradient-orb-1 {
    top: -10%;
    left: -10%;
    width: 40%;
    height: 40%;
    background-color: rgba(49, 46, 129, 0.2);
}

.gradient-orb-2 {
    bottom: -10%;
    right: -10%;
    width: 40%;
    height: 40%;
    background-color: rgba(30, 58, 138, 0.2);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(11, 12, 16, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(30, 41, 59, 0.5);
    z-index: 50;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-icon {
    background: linear-gradient(135deg, var(--indigo-500), var(--blue-600));
    padding: 0.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--white), var(--slate-400));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.025em;
}

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

.nav-link {
    color: var(--slate-400);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--white);
}

.btn-contact {
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease;
}

.btn-contact:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn .hidden {
    display: none;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    background: var(--slate-900);
    border-bottom: 1px solid var(--slate-800);
    padding: 1rem;
    position: fixed;
    top: 5rem;
    left: 0;
    right: 0;
    z-index: 40;
}

.mobile-menu.active {
    display: block;
}

.mobile-link {
    display: block;
    color: var(--slate-400);
    text-decoration: none;
    padding: 0.75rem 0;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.mobile-link:hover {
    color: var(--white);
}

/* Hero Section */
.hero {
    padding-top: 10rem;
    padding-bottom: 5rem;
    text-align: center;
    position: relative;
    z-index: 10;
}

.hero-content {
    max-width: 64rem;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.025em;
    margin-bottom: 2rem;
    line-height: 1.1;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--slate-400);
    max-width: 42rem;
    margin: 0 auto 3rem;
    line-height: 1.75;
    animation: fadeInUp 1s ease-out 0.1s backwards;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--white);
    color: var(--slate-900);
}

.btn-primary:hover {
    background: var(--slate-200);
}

.btn-secondary {
    background: var(--slate-800);
    color: var(--white);
    border: 1px solid var(--slate-700);
}

.btn-secondary:hover {
    background: var(--slate-700);
}

/* Projects Section */
.projects {
    padding: 6rem 0;
    position: relative;
    z-index: 10;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--slate-400);
    font-size: 1rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

/* Project Cards */
.project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: var(--slate-900);
    border: 1px solid var(--slate-800);
    border-radius: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
}

.project-card:hover {
    border-color: var(--slate-600);
    box-shadow: 0 25px 50px -12px rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.card-bg-icon {
    position: absolute;
    top: 0;
    right: 0;
    padding: 1rem;
    opacity: 0.1;
    transition: opacity 0.3s ease;
}

.project-card:hover .card-bg-icon {
    opacity: 0.2;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    position: relative;
    z-index: 10;
}

.card-icon {
    padding: 0.75rem;
    border-radius: 0.75rem;
    background: var(--slate-800);
    border: 1px solid var(--slate-700);
    transition: transform 0.3s ease;
}

.project-card:hover .card-icon {
    transform: scale(1.1);
}

/* Icon Colors */
.icon-emerald, .card-icon-emerald { color: var(--emerald-400); }
.icon-blue, .card-icon-blue { color: var(--blue-400); }
.icon-orange, .card-icon-orange { color: var(--orange-400); }
.icon-indigo, .card-icon-indigo { color: var(--indigo-500); }
.icon-rose, .card-icon-rose { color: var(--rose-400); }
.icon-purple, .card-icon-purple { color: var(--purple-400); }
.icon-cyan, .card-icon-cyan { color: var(--cyan-400); }
.icon-slate, .card-icon-slate { color: var(--slate-400); }
.icon-green, .card-icon-green { color: var(--green-400); }
.icon-yellow, .card-icon-yellow { color: var(--yellow-400); }
.icon-pink, .card-icon-pink { color: var(--pink-400); }

/* Badges */
.badge {
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid;
}

.badge-green {
    background: rgba(16, 185, 129, 0.1);
    color: var(--emerald-400);
    border-color: rgba(16, 185, 129, 0.2);
}

.badge-blue {
    background: rgba(59, 130, 246, 0.1);
    color: var(--blue-400);
    border-color: rgba(59, 130, 246, 0.2);
}

.badge-orange {
    background: rgba(249, 115, 22, 0.1);
    color: var(--orange-400);
    border-color: rgba(249, 115, 22, 0.2);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 10;
    transition: all 0.3s ease;
}

.project-card:hover .card-title {
    background: linear-gradient(to right, var(--white), var(--slate-400));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.card-desc {
    color: var(--slate-400);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    position: relative;
    z-index: 10;
    line-height: 1.6;
}

.card-tags {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 10;
}

.tag {
    font-size: 0.75rem;
    color: var(--slate-500);
    font-family: 'SF Mono', SFMono-Regular, ui-monospace, monospace;
}

.card-arrow {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    opacity: 0;
    transform: translateX(-0.5rem);
    transition: all 0.3s ease;
    color: var(--white);
}

.project-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Footer */
.footer {
    border-top: 1px solid var(--slate-800);
    background: var(--bg-dark);
    padding: 3rem 0 2rem;
    position: relative;
    z-index: 10;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-icon {
    color: var(--slate-600);
}

.footer-brand-text {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--slate-500);
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--slate-600);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.footer-link {
    color: var(--slate-600);
    text-decoration: none;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
}

.footer-link:hover {
    color: var(--white);
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(2rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card {
    animation: fadeInUp 0.8s ease-out backwards;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.15s; }
.project-card:nth-child(3) { animation-delay: 0.2s; }
.project-card:nth-child(4) { animation-delay: 0.25s; }
.project-card:nth-child(5) { animation-delay: 0.3s; }
.project-card:nth-child(6) { animation-delay: 0.35s; }
.project-card:nth-child(7) { animation-delay: 0.4s; }
.project-card:nth-child(8) { animation-delay: 0.45s; }
.project-card:nth-child(9) { animation-delay: 0.5s; }
.project-card:nth-child(10) { animation-delay: 0.55s; }
.project-card:nth-child(11) { animation-delay: 0.6s; }
