/* ==========================================================================
   CSS Variables & Theming
   ========================================================================== */
   :root {
    /* Dark Mode (Default) Colors */
    --bg-color: #050505;
    --bg-alt: #0a0a0a;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-main: #f4f4f5;
    --text-muted: #a1a1aa;
    
    /* Accents (Warm Orange / Red for Sports vibe matching user photo) */
    --accent-primary: #f05000;
    --accent-glow: rgba(240, 80, 0, 0.4);
    --accent-secondary: #dc2626;
    
    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Layout */
    --nav-height: 80px;
    --section-pad: 100px;
    
    /* Animations */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Mode Override */
body.light-mode {
    --bg-color: #ffffff;
    --bg-alt: #f8fafc;
    --card-bg: rgba(0, 0, 0, 0.02);
    --card-border: rgba(0, 0, 0, 0.08);
    --text-main: #09090b;
    --text-muted: #52525b;
    --accent-primary: #ea580c;
    --accent-glow: rgba(234, 88, 12, 0.3);
}

/* ==========================================================================
   Reset & Global Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-pad) 0;
    position: relative;
    z-index: 2;
}

.bg-alt {
    background-color: var(--bg-alt);
}

/* ==========================================================================
   Background Glowing Effects
   ========================================================================== */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    opacity: 0.4;
    pointer-events: none;
}

.glow-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-primary);
    top: -100px;
    left: -100px;
}

.glow-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-secondary);
    bottom: -50px;
    right: -50px;
}

.glow-3 {
    width: 500px;
    height: 500px;
    background: var(--accent-glow);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-line {
    width: 60px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 2px;
}

.mt-5 {
    margin-top: 50px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--accent-primary);
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--accent-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--card-bg);
    border-color: var(--text-muted);
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 100;
    transition: all var(--transition-fast);
    border-bottom: 1px solid transparent;
}

header.scrolled {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
}

body.light-mode header.scrolled {
    background: rgba(255, 255, 255, 0.8);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo span {
    color: var(--accent-primary);
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main);
}

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

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle, .mobile-toggle {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background var(--transition-fast);
}

.theme-toggle:hover, .mobile-toggle:hover {
    background: var(--card-bg);
}

.mobile-toggle {
    display: none;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.subtitle {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--accent-primary);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(to right, var(--text-main), var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-desc strong {
    color: var(--text-main);
    font-weight: 600;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-socials {
    display: flex;
    gap: 20px;
}

.hero-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: all var(--transition-fast);
}

.hero-socials a:hover {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
    transform: translateY(-3px);
}

@keyframes profileFloat {
    0% { transform: translateY(0) scale(1); box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 0px var(--accent-glow); }
    50% { transform: translateY(-15px) scale(1.02); box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 40px var(--accent-glow); }
    100% { transform: translateY(0) scale(1); box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 0px var(--accent-glow); }
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 450px;
    aspect-ratio: 4/5;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    animation: profileFloat 6s ease-in-out infinite;
    border: 2px solid transparent;
    transition: border-color var(--transition-slow);
}

.image-wrapper:hover {
    border-color: var(--accent-primary);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-color) 0%, transparent 40%);
    opacity: 0.8;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 32px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

.stat-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-main);
}

.stat-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.stat-card strong {
    color: var(--accent-primary);
}

/* ==========================================================================
   Services & Skills
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 32px 24px;
    border-radius: 16px;
    text-align: center;
    transition: all var(--transition-fast);
}

.service-card:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-5px);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 16px;
    display: inline-block;
    transition: color var(--transition-fast);
}

.service-card:hover i {
    color: #fff;
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.service-card:hover h3 {
    color: #fff;
}

.skills-software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.skills-box {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 32px;
    border-radius: 16px;
}

.skills-box h3 {
    margin-bottom: 24px;
    font-size: 1.25rem;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 12px;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

body.light-mode .tag {
    background: rgba(0, 0, 0, 0.05);
}

.tag:hover {
    color: var(--text-main);
    border-color: var(--accent-primary);
}

.tag-icon {
    width: 16px;
    height: 16px;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-muted);
}

.check-list li i {
    color: var(--accent-primary);
    font-size: 1.2rem;
}

/* ==========================================================================
   Work Process
   ========================================================================== */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.process-step {
    padding: 32px 24px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.process-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-medium);
}

.process-step:hover::before {
    transform: scaleX(1);
}

.step-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    margin-bottom: 16px;
    line-height: 1;
}

body.light-mode .step-number {
    color: rgba(0, 0, 0, 0.05);
}

.process-step h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.process-step p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   Projects
   ========================================================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.project-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    transition: transform var(--transition-fast);
}

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

.project-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 5, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    width: 60px;
    height: 60px;
    background: var(--accent-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transform: translateY(20px);
    transition: transform var(--transition-medium);
}

.project-card:hover .project-link {
    transform: translateY(0);
}

.project-info {
    padding: 32px;
}

.project-category {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.project-desc {
    color: var(--text-muted);
    font-size: 1rem;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 60px;
    border-radius: 24px;
}

.contact-desc {
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent-primary);
    background: var(--accent-glow);
    padding: 12px;
    border-radius: 12px;
}

.contact-item span {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.contact-item a {
    font-weight: 600;
    font-size: 1.1rem;
}

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

.social-links {
    display: flex;
    gap: 16px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid var(--card-border);
    font-weight: 500;
    font-size: 0.95rem;
}

.social-btn:hover {
    background: var(--card-bg);
    border-color: var(--text-muted);
}

.social-btn i {
    font-size: 1.2rem;
}

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

body.light-mode .form-group input,
body.light-mode .form-group textarea {
    background: rgba(0, 0, 0, 0.02);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: transparent;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--card-border);
    background: var(--bg-alt);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
}

.footer-logo span {
    color: var(--accent-primary);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

/* ==========================================================================
   Animations
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all var(--transition-slow);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all var(--transition-slow);
}

.reveal.active, .reveal-right.active {
    opacity: 1;
    transform: translate(0);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 80px 0;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background: var(--bg-color);
        padding: 40px 24px;
        transition: left var(--transition-medium);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }
    
    .nav-link {
        font-size: 1.25rem;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-image {
        justify-content: center;
        margin-top: 40px;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-socials {
        justify-content: center;
    }
    
    .hero-desc {
        margin: 0 auto 40px auto;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .process-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper {
        padding: 24px;
    }
}
