/* ========================================
   CODECATALYST AI - PROFESSIONAL PORTFOLIO
   Updated: 2025-08-29
   Version: v2025.08.29
======================================== */

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

/* Screen Reader Only Content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Mobile-first approach - better touch targets and scrolling */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* CSS Custom Properties */
:root {
    --primary-color: #A7A459;
    --secondary-color: #2C3E50;
    --accent-color: #3498DB;
    --success-color: #27AE60;
    --warning-color: #F39C12;
    --error-color: #E74C3C;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --text-muted: #95A5A6;
    --bg-light: #F8F9FA;
    --bg-dark: #1A1A1A;
    --bg-card: #FFFFFF;
    --white: #FFFFFF;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --shadow-card: 0 2px 10px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --transition-fast: all 0.2s ease;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    --gradient-hover: linear-gradient(135deg, #B8B568, #5DADE2);
    
    /* Typography */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
}

/* Dark mode variables */
[data-theme="dark"] {
    --primary-color: #D4D46F;
    --secondary-color: #E8E8E8;
    --accent-color: #5DADE2;
    --text-dark: #E8E8E8;
    --text-light: #B0B0B0;
    --text-muted: #8E8E8E;
    --bg-light: #2C2C2C;
    --bg-dark: #1A1A1A;
    --bg-card: #2A2A2A;
    --white: #1A1A1A;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.4);
    --shadow-card: 0 2px 10px rgba(0, 0, 0, 0.2);
    --gradient: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    --gradient-hover: linear-gradient(135deg, #E5E580, #74BDEB);
}

[data-theme="dark"] body {
    background: var(--bg-dark);
    color: var(--text-dark);
}

/* Focus Management for Accessibility */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px 12px;
    text-decoration: none;
    z-index: 10000;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition-fast);
}

.skip-link:focus {
    top: 6px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

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

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

a:hover, a:focus {
    color: var(--accent-color);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* ========================================
   HEADER AND NAVIGATION
======================================== */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

[data-theme="dark"] .main-header {
    background: rgba(26, 26, 26, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.main-header.scrolled {
    box-shadow: var(--shadow);
}

.navigation {
    position: relative;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
}

/* Brand Section */
.brand-section {
    flex-shrink: 0;
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.brand-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    transition: var(--transition);
}

.brand-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(167, 164, 89, 0.3);
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin: 0;
    color: var(--text-dark);
    font-family: 'JetBrains Mono', monospace;
}

.brand-tagline {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    font-weight: 500;
}

/* Main Navigation */
.nav-main-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
}

.nav-main-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-list {
    list-style: none;
    padding: var(--spacing-lg);
    margin: 0;
}

.nav-item {
    margin-bottom: var(--spacing-sm);
}

.nav-anchor {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    color: var(--text-light);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 500;
}

.nav-anchor:hover,
.nav-anchor:focus,
.nav-anchor.active {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.nav-icon {
    font-size: var(--font-size-lg);
    width: 20px;
    text-align: center;
}

/* Action Buttons */
.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.theme-toggle,
.menu-toggle {
    background: none;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: var(--border-radius);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.theme-toggle:hover,
.theme-toggle:focus,
.menu-toggle:hover,
.menu-toggle:focus {
    background: var(--primary-color);
    color: white;
}

.menu-toggle {
    flex-direction: column;
    width: 44px;
    height: 44px;
    justify-content: center;
    gap: 4px;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: currentColor;
    transition: var(--transition);
    border-radius: 1px;
}

.menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Desktop Navigation */
@media (min-width: 769px) {
    .nav-main-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
    }

    .nav-list {
        display: flex;
        align-items: center;
        gap: var(--spacing-lg);
        padding: 0;
    }

    .nav-item {
        margin: 0;
    }

    .nav-anchor {
        padding: var(--spacing-sm) var(--spacing-md);
        border-radius: var(--border-radius);
    }

    .nav-anchor:hover,
    .nav-anchor:focus,
    .nav-anchor.active {
        transform: translateY(-2px);
    }

    .menu-toggle {
        display: none;
    }

    .theme-toggle {
        padding: var(--spacing-sm) var(--spacing-md);
    }
}

[data-theme="dark"] .service-card,
[data-theme="dark"] .contact-card {
    background: var(--bg-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .service-card:hover,
[data-theme="dark"] .contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .tech-item,
[data-theme="dark"] .skill-item {
    background: rgba(212, 212, 111, 0.1);
    border: 1px solid rgba(212, 212, 111, 0.2);
}

[data-theme="dark"] .tech-item:hover,
[data-theme="dark"] .skill-item:hover {
    background: rgba(212, 212, 111, 0.2);
    border-color: var(--primary-color);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea {
    background: var(--bg-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-dark);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group select:focus,
[data-theme="dark"] .form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 212, 111, 0.1);
}

[data-theme="dark"] .footer {
    background: var(--bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Global body styles */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

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

/* Section spacing for fixed header */
section {
    scroll-margin-top: 80px; /* Accounts for fixed header height */
}

section:not(.hero) {
    padding-top: 2rem; /* Additional spacing for non-hero sections */
}

/* Improved touch targets for mobile */
button, a, input, select, textarea {
    min-height: 44px;
    touch-action: manipulation;
}

/* Prevent zoom on form inputs in iOS */
input[type="email"],
input[type="tel"],
input[type="text"],
textarea,
select {
    font-size: 16px;
}

@media (max-width: 768px) {
    input[type="email"],
    input[type="tel"], 
    input[type="text"],
    textarea,
    select {
        font-size: 16px !important;
    }
}

/* ========================================
   PROFESSIONAL NAVIGATION SYSTEM
======================================== */

/* Main Header Container */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 1px solid rgba(167, 164, 89, 0.1);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
    z-index: 9999; /* Increased z-index to ensure it stays on top */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-header.scrolled {
    height: 70px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(167, 164, 89, 0.15);
}

/* Navigation Container */
.navigation {
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 2rem;
}

/* Brand Section */
.brand-section {
    flex-shrink: 0;
}

.brand-link {
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.brand-link:hover {
    transform: translateY(-1px);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-logo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid transparent;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    padding: 2px;
    transition: all 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

.brand-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.brand-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Main Navigation Menu */
.nav-main-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50px;
    padding: 0.3rem;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(167, 164, 89, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.nav-item {
    margin: 0;
}

.nav-anchor {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    text-decoration: none;
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: transparent;
}

.nav-anchor::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    border-radius: 30px;
}

.nav-anchor:hover::before,
.nav-anchor.active::before {
    left: 0;
}

.nav-anchor:hover,
.nav-anchor.active {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(167, 164, 89, 0.4);
}

.nav-anchor.active {
    box-shadow: 0 12px 35px rgba(167, 164, 89, 0.5), 0 0 20px rgba(167, 164, 89, 0.3);
}

.nav-icon {
    font-size: 0.9rem;
    opacity: 0.8;
}

.nav-anchor:hover .nav-icon,
.nav-anchor.active .nav-icon {
    opacity: 1;
}

.nav-text {
    font-weight: 600;
}

/* Action Buttons */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

/* Theme Toggle Button */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.4rem;
    background: linear-gradient(135deg, rgba(167, 164, 89, 0.1), rgba(52, 152, 219, 0.1));
    border: 2px solid rgba(167, 164, 89, 0.3);
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

.theme-toggle:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(167, 164, 89, 0.4);
}

.theme-icon {
    font-size: 1rem;
    transition: all 0.3s ease;
}

.theme-toggle:hover .theme-icon {
    transform: rotate(180deg);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(167, 164, 89, 0.3);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 0.25rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 10000;
}

.menu-toggle:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(167, 164, 89, 0.3);
}

.hamburger-line {
    width: 24px;
    height: 2.5px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

.menu-toggle:hover .hamburger-line {
    background: white;
}

.menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Dark Mode Styles */
[data-theme="dark"] .main-header {
    background: rgba(26, 26, 26, 0.98);
    border-bottom-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .main-header.scrolled {
    background: rgba(26, 26, 26, 0.99);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid rgba(167, 164, 89, 0.2);
}

[data-theme="dark"] .brand-name {
    color: var(--text-dark);
}

[data-theme="dark"] .brand-tagline {
    color: var(--text-light);
}

[data-theme="dark"] .nav-list {
    background: rgba(44, 44, 44, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .nav-anchor {
    color: var(--text-dark);
    background: transparent;
}

[data-theme="dark"] .nav-anchor:hover,
[data-theme="dark"] .nav-anchor.active {
    color: white;
    box-shadow: 0 12px 35px rgba(212, 212, 111, 0.4);
}

[data-theme="dark"] .nav-anchor.active {
    box-shadow: 0 12px 35px rgba(212, 212, 111, 0.5), 0 0 20px rgba(212, 212, 111, 0.3);
}

[data-theme="dark"] .theme-toggle {
    background: linear-gradient(135deg, rgba(212, 212, 111, 0.1), rgba(93, 173, 226, 0.1));
    border-color: rgba(212, 212, 111, 0.3);
    color: var(--text-dark);
}

[data-theme="dark"] .theme-toggle:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}

[data-theme="dark"] .menu-toggle {
    background: rgba(44, 44, 44, 0.9);
    border-color: rgba(212, 212, 111, 0.3);
}

[data-theme="dark"] .menu-toggle:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}
[data-theme="dark"] .nav-anchor.active {
    color: white;
}

[data-theme="dark"] .theme-toggle {
    background: var(--bg-light);
    color: var(--text-dark);
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .theme-toggle:hover {
    background: var(--primary-color);
    color: white;
}

[data-theme="dark"] .menu-toggle {
    background: var(--bg-light);
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .menu-toggle:hover {
    background: var(--primary-color);
}

[data-theme="dark"] .hamburger-line {
    background: var(--text-dark);
}

[data-theme="dark"] .menu-toggle:hover .hamburger-line {
    background: white;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 50%, #f3e5f5 100%);
    padding-top: 100px; /* Increased to ensure proper spacing from fixed header */
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="rgba(167,164,89,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.hero-container {
    max-width: 1400px;
    margin: 8px auto;
    padding: 0 20px;
    width: 100%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 80vh;
}

.hero-text {
    animation: slideInLeft 1s ease-out;
}

.typing-container {
    margin-bottom: 3rem;
    text-align: left;
}

.main-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--text-light);
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
}

.hero-description {
    margin-bottom: 3rem;
}

.lead-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.tech-stack {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.tech-item {
    background: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 500;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-dark);
    display: inline-block;
    cursor: pointer;
}

.tech-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    background: var(--primary-color);
    color: white;
    text-decoration: none;
}

.redeem-code {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 1rem;
    border-radius: 10px;
    margin: 1.5rem 0;
}

.code-label {
    font-weight: 600;
}

.code-value {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    letter-spacing: 1px;
}

.cta-buttons {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-install {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    animation: pulse 2s infinite;
    position: relative;
    overflow: hidden;
}

.btn-install:hover {
    background: linear-gradient(135deg, #218838, #1e7e34);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.btn-install:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}

.btn-install i {
    margin-right: 0.5rem;
    animation: bounce 1s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-3px); }
    60% { transform: translateY(-1px); }
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInRight 1s ease-out;
}

.floating-animation {
    position: absolute;
    top: -50px;
    right: -50px;
    z-index: 1;
}

.hero-gif {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    animation: float 3s ease-in-out infinite;
}

.profile-image {
    position: relative;
    z-index: 2;
}

.profile-pic {
    width: 300px;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
    transition: var(--transition);
}

.profile-pic:hover {
    transform: scale(1.05);
}

/* Services Section */
.services {
    padding: 5rem 0;
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(167, 164, 89, 0.1), transparent);
    transition: var(--transition);
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-card.featured {
    background: var(--gradient);
    color: white;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-card p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    text-align: left;
}

.service-features li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.service-card.featured .service-features li::before {
    color: white;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.about-intro {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.skills-container h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

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

.skill-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 10px;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.skill-item:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(10px);
    text-decoration: none;
}

.skill-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.skill-item:hover i {
    color: white;
}

/* Light mode specific hover - icons stay black */
[data-theme="light"] .skill-item:hover i,
:root:not([data-theme="dark"]) .skill-item:hover i {
    color: #000000;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--gradient);
    color: white;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.contact-description {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-methods {
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.contact-method:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-hover);
    text-decoration: none;
    color: inherit;
}

.contact-method i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 30px;
}

.contact-method h4 {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.contact-method p {
    color: var(--text-light);
    margin: 0;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-decoration: none;
    color: white;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.social-link.linkedin {
    background: #0077B5;
}

.social-link.instagram {
    background: linear-gradient(45deg, #E4405F, #F77737, #FCAF45);
}

.social-link.facebook {
    background: #1877F2;
}

.social-link.twitter {
    background: #000000;
}

.social-link.telegram {
    background: #0088CC;
}

.social-link.github {
    background: #333333;
}

.social-link.email {
    background: #EA4335;
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #E1E8ED;
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(167, 164, 89, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 2rem 0;
}

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

.footer-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

.footer-link i {
    font-size: 1.2rem;
}

.footer-left, .footer-right {
    flex: 1;
}

.footer-right {
    text-align: right;
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
/* Enhanced Mobile First Approach */
@media (max-width: 768px) {
    /* Container adjustments */
    .container {
        padding: 0 1rem;
        max-width: 100%;
    }

    /* ========================================
       PROFESSIONAL NAVIGATION - MOBILE
    ======================================== */
    
    /* Header adjustments for mobile */
    .main-header {
        height: 70px;
        padding: 0;
    }
    
    .navigation {
        padding: 0 1rem;
    }
    
    .nav-wrapper {
        gap: 1rem;
    }
    
    /* Brand section mobile */
    .brand-logo {
        width: 40px;
        height: 40px;
        border-radius: 8px;
    }
    
    .brand-name {
        font-size: 1.1rem;
    }
    
    .brand-tagline {
        font-size: 0.65rem;
    }
    
    /* Show mobile menu toggle */
    .menu-toggle {
        display: flex !important;
        position: relative;
        z-index: 10000;
    }
    
    /* Hide desktop navigation and transform for mobile */
    .nav-main-menu {
        position: fixed !important;
        top: 70px;
        left: 0;
        width: 100% !important;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        transform: translateX(-100%);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 9998;
        overflow-y: auto;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        display: block !important;
    }
    
    .nav-main-menu.active {
        transform: translateX(0) !important;
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0 !important;
        background: transparent !important;
        border-radius: 0 !important;
        padding: 2rem 1.5rem !important;
        height: auto;
        min-height: calc(100vh - 70px);
        border: none !important;
        box-shadow: none !important;
        margin: 0;
        width: 100%;
    }
    
    .nav-item {
        width: 100% !important;
        margin: 0 !important;
    }
    
    .nav-anchor {
        width: 100% !important;
        padding: 1.2rem 1.5rem !important;
        border-radius: 12px !important;
        margin-bottom: 0.5rem !important;
        font-size: 1rem !important;
        background: rgba(248, 249, 250, 0.8) !important;
        border: 1px solid rgba(0, 0, 0, 0.05) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        text-decoration: none !important;
        color: var(--text-dark) !important;
    }
    
    .nav-anchor::before {
        left: -100% !important;
    }
    
    .nav-anchor:hover::before,
    .nav-anchor.active::before {
        left: 0 !important;
    }
    
    .nav-icon {
        font-size: 1.1rem !important;
        margin-right: 0.5rem !important;
    }
    
    .nav-text {
        font-size: 1rem !important;
        font-weight: 600 !important;
    }
    
    /* Theme toggle mobile */
    .theme-toggle {
        padding: 0.6rem 1rem !important;
        font-size: 0.8rem !important;
        border-radius: 20px !important;
    }
    
    .theme-label {
        display: none !important;
    }
    
    /* Dark mode mobile */
    [data-theme="dark"] .nav-main-menu {
        background: rgba(26, 26, 26, 0.98) !important;
        border-top-color: rgba(255, 255, 255, 0.1) !important;
    }
    
    [data-theme="dark"] .nav-anchor {
        background: rgba(44, 44, 44, 0.8) !important;
        border-color: rgba(255, 255, 255, 0.1) !important;
        color: var(--text-dark) !important;
    }

    /* Ensure hamburger menu is visible */
    .hamburger-line {
        display: block !important;
        width: 24px;
        height: 2.5px;
        background: var(--text-dark);
        border-radius: 2px;
        transition: all 0.3s ease;
        margin: 2px 0;
    }

    /* Active hamburger animation */
    .menu-toggle.active .hamburger-line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
        transform: translateX(-20px);
    }

    .menu-toggle.active .hamburger-line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Hero section improvements */
    .hero {
        padding-top: 90px;
        min-height: 100vh;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-container {
        padding: 0 1rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        min-height: 80vh;
        padding: 1rem 0;
    }

    .hero-visual {
        order: -1;
        margin-top: 1rem;
        position: relative;
        height: 280px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .main-title {
        font-size: 2.2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .lead-text {
        font-size: 1.1rem;
    }

    .tech-stack {
        justify-content: center;
        gap: 0.8rem;
        margin: 1rem 0;
    }

    .tech-item {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .cta-buttons {
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        min-width: 140px;
    }

    /* Services section */
    .services {
        padding: 3rem 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }

    .section-header {
        margin-bottom: 2.5rem;
        padding: 0 1rem;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    /* About section */
    .about {
        padding: 3rem 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .about-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .stat-item {
        flex: 1;
        min-width: 140px;
        padding: 1.5rem;
    }

    /* Contact section */
    .contact {
        padding: 3rem 0;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info {
        order: 1;
    }

    .contact-form {
        order: 2;
        margin: 0 1rem;
    }

    .contact-methods {
        margin-bottom: 1.5rem;
    }

    .contact-method {
        padding: 1rem;
        margin-bottom: 0.8rem;
    }

    .social-links {
        gap: 0.8rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    .social-link {
        width: 45px;
        height: 45px;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 0 1rem;
    }

    .profile-pic {
        width: 220px;
        height: 280px;
        border-radius: 15px;
    }

    .hero-gif {
        width: 80px;
        height: 80px;
    }

    .floating-animation {
        top: 15px;
        right: 5px;
        position: relative;
    }

    /* WhatsApp button mobile adjustment */
    .whatsapp-float {
        right: 15px;
        bottom: 15px;
    }

    .whatsapp-btn {
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
    }
}

/* Extra Small Mobile Devices (320px - 480px) */
@media (max-width: 480px) {
    /* Base container and spacing */
    .container {
        padding: 0 0.8rem;
    }

    /* Navbar ultra-compact */
    .main-header {
        height: 65px;
        padding: 0;
    }

    .navigation {
        padding: 0 0.8rem;
    }

    .nav-wrapper {
        gap: 0.5rem;
    }

    /* Brand section smaller */
    .brand-logo {
        width: 35px;
        height: 35px;
        border-radius: 6px;
    }

    .brand-name {
        font-size: 1rem;
        letter-spacing: -0.3px;
    }

    .brand-tagline {
        font-size: 0.6rem;
        letter-spacing: 0.5px;
    }

    /* Mobile menu adjustments */
    .nav-main-menu {
        top: 65px !important;
        height: calc(100vh - 65px) !important;
    }

    .nav-list {
        padding: 1.5rem 1rem !important;
        min-height: calc(100vh - 65px);
    }

    .nav-anchor {
        padding: 1rem 1.2rem !important;
        font-size: 0.95rem !important;
        margin-bottom: 0.4rem !important;
        border-radius: 10px !important;
    }

    .nav-icon {
        font-size: 1rem !important;
        margin-right: 0.4rem !important;
    }

    .nav-text {
        font-size: 0.95rem !important;
    }

    /* Menu toggle smaller */
    .menu-toggle {
        width: 45px !important;
        height: 45px !important;
        border-radius: 12px !important;
    }

    .hamburger-line {
        width: 20px !important;
        height: 2px !important;
    }

    .menu-toggle.active .hamburger-line:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .menu-toggle.active .hamburger-line:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    /* Theme toggle smaller */
    .theme-toggle {
        width: 45px !important;
        height: 45px !important;
        padding: 0.5rem !important;
        border-radius: 12px !important;
    }

    .theme-icon {
        font-size: 0.9rem !important;
    }

    /* Dark mode adjustments */
    [data-theme="dark"] .nav-main-menu {
        background: rgba(20, 20, 20, 0.98) !important;
    }

    [data-theme="dark"] .nav-anchor {
        background: rgba(40, 40, 40, 0.9) !important;
        border-color: rgba(255, 255, 255, 0.08) !important;
    }

    /* Hero section ultra-mobile */
    .hero {
        padding-top: 85px;
        min-height: 100vh;
        padding-left: 0.8rem;
        padding-right: 0.8rem;
    }

    .hero-container {
        padding: 0 0.5rem;
    }

    .hero-content {
        gap: 1.5rem;
        padding: 0.5rem 0;
    }

    .hero-visual {
        height: 260px;
        border-radius: 15px;
    }

    .hero-gif {
        width: 70px;
        height: 70px;
    }

    .floating-animation {
        top: 10px;
        right: 5px;
        position: relative;
    }

    /* Typography improvements */
    .main-title {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .typing-container {
        margin-bottom: 1.5rem;
    }

    /* Ensure touch targets are large enough */
    .nav-anchor,
    .theme-toggle,
    .menu-toggle {
        min-height: 44px;
        min-width: 44px;
        touch-action: manipulation;
    }

    /* WhatsApp button mobile adjustment */
    .whatsapp-float {
        right: 15px;
        bottom: 15px;
    }

    .whatsapp-btn {
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
    }
}

/* Very Small Devices (360px and below) - For older Android phones */
@media (max-width: 360px) {
    .container {
        padding: 0 0.6rem;
    }

    .hero {
        padding-top: 65px;
        padding-left: 0.6rem;
        padding-right: 0.6rem;
    }

    .hero-container {
        padding: 0 0.3rem;
    }

    .main-title {
        font-size: 1.6rem;
        line-height: 1.2;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    .hero-visual {
        height: 200px;
    }

    .main-title {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 0.8rem;
    }

    .subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .lead-text {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .hero-description p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .tech-stack {
        gap: 0.5rem;
        margin: 0.8rem 0;
    }

    .tech-item {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
        border-radius: 15px;
    }

    .cta-buttons {
        gap: 0.8rem;
        margin-top: 1.5rem;
    }

    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
        min-width: 120px;
        border-radius: 20px;
    }

    /* Profile image adjustment */
    .profile-pic {
        width: 180px;
        height: 240px;
        border-radius: 12px;
    }

    .hero-gif {
        width: 50px;
        height: 50px;
    }

    .floating-animation {
        top: 5px;
        right: 0px;
    }

    /* Sections spacing */
    .services, .about, .contact {
        padding: 2.5rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
        padding: 0 0.8rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .section-header p {
        font-size: 1rem;
    }

    /* Service cards ultra-compact */
    .services-grid {
        gap: 1.2rem;
        padding: 0 0.5rem;
    }

    .service-card {
        padding: 1.5rem 1rem;
        margin: 0 0.5rem;
        border-radius: 15px;
    }

    .service-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .service-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .service-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .service-features li {
        font-size: 0.85rem;
        padding: 0.3rem 0;
    }

    /* About section compact */
    .about-content {
        gap: 1.5rem;
    }

    .about-text h2 {
        font-size: 1.8rem;
    }

    .about-intro {
        font-size: 1rem;
        line-height: 1.6;
    }

    .skills-container h3 {
        font-size: 1.3rem;
    }

    .skill-item {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .about-stats {
        flex-direction: column;
        gap: 0.8rem;
    }

    .stat-item {
        padding: 1.2rem;
        min-width: 100%;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    /* Contact section ultra-mobile */
    .contact-content {
        gap: 1.5rem;
    }

    .contact-info h2 {
        font-size: 1.8rem;
    }

    .contact-description {
        font-size: 1rem;
        line-height: 1.6;
    }

    .contact-method {
        padding: 0.8rem;
        margin-bottom: 0.6rem;
        border-radius: 8px;
    }

    .contact-method h4 {
        font-size: 1rem;
    }

    .contact-method p {
        font-size: 0.85rem;
    }

    .social-links {
        gap: 0.6rem;
        margin-top: 1rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    /* Contact form compact */
    .contact-form {
        padding: 1.2rem;
        margin: 0 0.5rem;
        border-radius: 15px;
    }

    .form-group {
        margin-bottom: 1.2rem;
    }

    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
        border-radius: 8px;
    }

    .form-group textarea {
        min-height: 100px;
    }

    /* Footer ultra-compact */
    .footer {
        padding: 1.5rem 0;
    }

    .footer-content {
        gap: 0.8rem;
        padding: 0 0.8rem;
    }

    .footer-left p,
    .footer-right p {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    /* WhatsApp button */
    .whatsapp-float {
        right: 12px;
        bottom: 12px;
    }

    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }

    /* Typography improvements */
    .typing-container {
        margin-bottom: 1.5rem;
    }

    /* Ensure touch targets are large enough */
    .nav-toggle {
        padding: 0.5rem;
        min-width: 44px;
        min-height: 44px;
    }

    .bar {
        width: 22px;
        height: 2px;
    }
}

/* Very Small Devices (360px and below) - For older Android phones */
@media (max-width: 360px) {
    .container {
        padding: 0 0.6rem;
    }

    .hero {
        padding-top: 65px;
        padding-left: 0.6rem;
        padding-right: 0.6rem;
    }

    .hero-container {
        padding: 0 0.3rem;
    }

    .main-title {
        font-size: 1.6rem;
        line-height: 1.2;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    .hero-visual {
        height: 200px;
    }

    .profile-pic {
        width: 150px;
        height: 200px;
    }

    .hero-gif {
        width: 40px;
        height: 40px;
    }

    .service-card {
        padding: 1.2rem 0.8rem;
        margin: 0 0.2rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .section-header p {
        font-size: 0.9rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 200px;
        padding: 0.8rem;
    }

    .contact-form {
        padding: 1rem;
        margin: 0 0.2rem;
    }

    .whatsapp-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .social-link {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .nav-logo .logo-text {
        font-size: 0.8rem;
    }

    .nav-logo .logo-img {
        width: 25px;
        height: 25px;
    }

    .tech-item {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }

    .contact-method {
        padding: 0.6rem;
    }

    .contact-method h4 {
        font-size: 0.9rem;
    }

    .contact-method p {
        font-size: 0.8rem;
    }
}

/* Landscape orientation improvements for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding-top: 60px;
        min-height: 90vh;
    }

    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        text-align: left;
    }

    .hero-visual {
        order: 2;
        height: 250px;
    }

    .hero-text {
        order: 1;
    }

    .main-title {
        font-size: 2rem;
    }

    .profile-pic {
        width: 160px;
        height: 220px;
    }

    .about-stats {
        flex-direction: row;
    }

    .stat-item {
        min-width: 120px;
    }
}

/* High DPI screens optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-img, .profile-pic {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
    animation: float 3s ease-in-out infinite;
}

/* WhatsApp Button - No Tooltip for Privacy */
.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    text-decoration: none;
    font-size: 1.8rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    border: 3px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    color: white;
    text-decoration: none;
}

.whatsapp-btn:active {
    transform: scale(0.95);
}

/* Remove any tooltips or hover text */
.whatsapp-btn::after,
.whatsapp-btn::before {
    display: none !important;
}

/* Pulsing animation for WhatsApp button */
.whatsapp-btn::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.3);
    animation: pulse 2s infinite;
    display: block !important;
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img:not([src]) {
    opacity: 0;
}

/* Enhanced focus states for accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar,
    .footer {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: 1rem 0;
    }
    
    .section {
        break-inside: avoid;
    }
}