/* 
    Theme: Tech-Noir / Premium Dark Mode 
    Fonts: Outfit (Headings), Inter (Body)
*/

:root {
    /* Colors */
    --bg-dark: #0a0a0a;
    --bg-card: #121212;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-primary: #6366f1;
    /* Indigo */
    --accent-secondary: #ec4899;
    /* Pink */
    --accent-tertiary: #8b5cf6;
    /* Violet */
    --gradient-main: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));

    /* Spacing */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Layout */
    --container-width: 1200px;
    --radius-md: 12px;
    --radius-lg: 24px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
    background: linear-gradient(to right, #fff, #a0a0a0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-sm) 0;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.05em;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
}

.nav-links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    /* Offset for fixed nav */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.overline {
    color: var(--accent-primary);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: var(--spacing-sm);
    font-size: 0.9rem;
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
}

.hero .subtitle {
    font-size: 2.5rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    font-weight: 500;
}

.bio {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: var(--spacing-lg);
}

.bio strong {
    color: var(--text-primary);
    font-weight: 600;
}

.cta-group {
    display: flex;
    gap: var(--spacing-sm);
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-primary);
}

/* Hero Background Animation */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 10s infinite ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-primary);
    top: -100px;
    right: -100px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-secondary);
    bottom: 10%;
    left: -50px;
    animation-delay: -5s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, 50px);
    }
}

/* Work Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-md);
}

.project-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-content {
    padding: var(--spacing-md);
    flex: 1;
}

.project-tag {
    font-size: 0.8rem;
    color: var(--accent-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    display: block;
    margin-bottom: var(--spacing-sm);
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.project-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-md);
}

.project-stats {
    display: flex;
    gap: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-sm);
}

.project-stats li {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 500;
}

.card-visual {
    height: 100px;
    background: #000;
    position: relative;
    overflow: hidden;
}

.visual-placeholder {
    width: 100%;
    height: 100%;
    opacity: 0.8;
    transition: transform 0.5s ease;
}

.project-card:hover .visual-placeholder {
    transform: scale(1.05);
}

.gradient-1 {
    background: linear-gradient(45deg, #2c3e50, #3498db);
}

.gradient-2 {
    background: linear-gradient(45deg, #232526, #414345);
}

.gradient-3 {
    background: linear-gradient(45deg, #4b6cb7, #182848);
}

.gradient-4 {
    background: linear-gradient(45deg, #ff9966, #ff5e62);
}

.gradient-5 {
    background: linear-gradient(45deg, #11998e, #38ef7d);
}

/* App Store Buttons */
.app-links {
    display: flex;
    gap: 1rem;
    margin-top: var(--spacing-md);
    align-items: center;
}

.store-link {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border: none;
    padding: 0;
}

.store-link img {
    height: 40px;
    width: auto;
    display: block;
}

.store-link:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    background: none;
    box-shadow: none;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--spacing-lg);
    align-items: start;
}

.about-text p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.about-text strong {
    color: var(--text-primary);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.stat-item {
    background: rgba(255, 255, 255, 0.03);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Skills Section */
.skills-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.skill-category h3 {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    border-bottom: 1px solid var(--accent-primary);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.tag:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

/* Contact Section */
.contact-section {
    text-align: center;
    background: linear-gradient(to bottom, var(--bg-dark), #0f0f15);
}

.contact-content {
    max-width: 600px;
}

.contact-section p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    font-size: 1.2rem;
}

.email-link {
    display: inline-block;
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(to right, #fff, #a0a0a0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: opacity 0.3s ease;
}

.email-link:hover {
    opacity: 0.8;
}

.social-links {
    margin-bottom: var(--spacing-md);
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.1rem;
    border-bottom: 1px solid transparent;
}

.social-links a:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.location {
    font-size: 0.9rem;
    opacity: 0.5;
}

/* Footer */
footer {
    padding: var(--spacing-md) 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero .subtitle {
        font-size: 1.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .stat-item {
        padding: var(--spacing-sm);
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}