/* ============================================================================
   MODERN PORTFOLIO STYLES - VIBRANT & CLEAN DESIGN
   ============================================================================ */

:root {
    --primary-gradient: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    --secondary-gradient: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    --tertiary-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --success-gradient: linear-gradient(135deg, #25d366 0%, #1ea853 100%);
    
    --color-primary: #0ea5e9;
    --color-secondary: #06b6d4;
    --color-accent: #f97316;
    --color-success: #25d366;
    
    --color-dark: #1a202c;
    --color-light: #ffffff;
    --color-gray: #718096;
    --color-border: #e2e8f0;
    
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;
    --spacing-8xl: 8rem;
    
    --transition-fast: 0.2s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 30px 80px rgba(0, 0, 0, 0.2);
}

/* ============================================================================
   GENERAL STYLES
   ============================================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Inter', sans-serif;
    color: #2d3748;
    background-color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

body.light-theme {
    background-color: #ffffff;
    color: #2d3748;
}

body.dark-theme {
    background-color: #1a202c;
    color: #e2e8f0;
}

body.dark-theme .navbar {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%) !important;
}

body.dark-theme section {
    background-color: #2d3748;
}

body.dark-theme footer {
    background: linear-gradient(135deg, #1a202c 0%, #111416 100%) !important;
}

/* ============================================================================
   TYPOGRAPHY
   ============================================================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
}

h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 6vw, 3.5rem);
}

h3 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

p {
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-normal);
}

a:hover {
    color: var(--color-secondary);
    text-decoration: none;
}

/* ============================================================================
   BUTTONS
   ============================================================================ */

.btn {
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #25d366 0%, #20ba58 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-success:hover {
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-light {
    background: white;
    color: var(--color-primary);
    border: 2px solid white;
}

.btn-light:hover {
    background: transparent;
    color: white;
}

/* ============================================================================
   NAVIGATION
   ============================================================================ */

.navbar {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    transition: all var(--transition-normal);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    color: #2d3748 !important;
    font-weight: 500;
    transition: color var(--transition-normal);
    position: relative;
}

.nav-link:hover {
    color: var(--color-primary) !important;
}

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

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

/* ============================================================================
   HERO SECTION
   ============================================================================ */

.hero-section {
    background: var(--primary-gradient);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: blob 8s infinite;
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    animation: blob 6s infinite reverse;
    pointer-events: none;
}

@keyframes blob {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(20px, -50px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    75% {
        transform: translate(50px, 50px) scale(1.05);
    }
}

.badge {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    backdrop-filter: blur(10px);
}

/* ============================================================================
   CARDS & TECH STACK
   ============================================================================ */

.tech-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    border-radius: 1.25rem;
    transition: all var(--transition-normal);
}

.tech-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.stat-box {
    padding: 1.5rem 1.75rem;
    border-radius: 0.75rem;
    text-align: center;
    transition: all var(--transition-normal);
}

.stat-box h3 {
    font-size: 1.8rem;
    margin-bottom: 0;
}

.stat-box p {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* ============================================================================
   SECTIONS
   ============================================================================ */

section {
    padding: var(--spacing-4xl) 0;
    transition: all var(--transition-normal);
}

section h2 {
    margin-bottom: var(--spacing-2xl);
}

.rounded-3xl {
    border-radius: 1.5rem;
}

/* ============================================================================
   SOCIAL LINKS
   ============================================================================ */

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.2rem;
    transition: all var(--transition-normal);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background: white;
    color: var(--color-primary);
    transform: scale(1.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.social-footer-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.social-footer-link:hover {
    transform: scale(1.2) translateY(-3px);
    color: var(--color-primary) !important;
}

/* ============================================================================
   IMAGES
   ============================================================================ */

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

.img-fluid {
    max-width: 100%;
    height: auto;
}

.rounded-3xl {
    border-radius: 1.5rem;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 768px) {
    .hero-section {
        padding: var(--spacing-2xl) 0;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .navbar-collapse {
        margin-top: var(--spacing-lg);
    }

    section {
        padding: var(--spacing-2xl) 0;
    }

    .tech-card {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: var(--spacing-md);
        padding-right: var(--spacing-md);
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ============================================================================
   ACCESSIBILITY & ANIMATIONS
   ============================================================================ */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 10px;
}

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

/* Dark theme scrollbar */
body.dark-theme::-webkit-scrollbar-track {
    background: #2d3748;
}

body.dark-theme::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

.fw-700 {
    font-weight: 700;
}

.fw-800 {
    font-weight: 800;
}

.fw-600 {
    font-weight: 600;
}

.fw-500 {
    font-weight: 500;
}

.text-bold {
    font-weight: 700;
}

.py-8 {
    padding-top: var(--spacing-4xl) !important;
    padding-bottom: var(--spacing-4xl) !important;
}

.mb-8 {
    margin-bottom: var(--spacing-4xl) !important;
}

.mt-8 {
    margin-top: var(--spacing-4xl) !important;
}

/* ============================================================================
   FOOTER
   ============================================================================ */

footer {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: white;
    padding: 3rem 0 1rem;
    transition: all var(--transition-normal);
}

footer a {
    color: white;
    text-decoration: none;
}

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

footer hr {
    border-color: rgba(255, 255, 255, 0.1);
}

footer p {
    margin-bottom: 0;
}

footer .small {
    opacity: 0.8;
}

/* ============================================================================
   FORM ELEMENTS
   ============================================================================ */

input, textarea, select {
    border: 2px solid var(--color-border);
    border-radius: 0.5rem;
    padding: 0.75rem;
    font-family: inherit;
    transition: all var(--transition-normal);
}

input:focus, textarea:focus, select:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

body.dark-theme input,
body.dark-theme textarea,
body.dark-theme select {
    background-color: #1a202c;
    border-color: #4a5568;
    color: #e2e8f0;
}

/* ============================================================================
   FLOATING ANIMATION
   ============================================================================ */

.floating-shape {
    animation: float 6s ease-in-out infinite;
    pointer-events: none !important;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}