/* ===================================
   CSS Custom Properties (Design Tokens)
   =================================== */
:root {
    /* Color Palette - Dark + Green Accents */
    --primary: #3E6A44;
    --primary-dark: #234e2a;
    --primary-light: #6B9F71;
    --secondary: #8BCE93;
    --secondary-dark: #6B9F71;
    --accent: #9CF4A7;
    --accent-light: #D5FFD9;

    /* Neutral Colors - Dark Mode */
    --bg-dark: #0a1a0d;
    --bg-darker: #050d07;
    --bg-card: rgba(10, 26, 13, 0.9);
    --bg-glass: rgba(62, 106, 68, 0.05);
    --bg-glass-hover: rgba(62, 106, 68, 0.1);

    /* Text - White/Light with Green accents */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --border-color: rgba(62, 106, 68, 0.2);
    --border-glow: rgba(62, 106, 68, 0.5);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #3E6A44 0%, #6B9F71 100%);
    --gradient-accent: linear-gradient(135deg, #8BCE93 0%, #3E6A44 100%);
    --gradient-dark: linear-gradient(135deg, #0a1a0d 0%, #050d07 100%);
    --gradient-hero: radial-gradient(ellipse at top, rgba(62, 106, 68, 0.15) 0%, transparent 50%);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;

    /* Spacing */
    --section-padding: 120px;
    --container-max: 1200px;

    /* Transitions - Optimized for speed */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.2s ease;
    --transition-slow: 0.35s ease;
    --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(62, 106, 68, 0.3);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}


/* ===================================
   Light Mode Theme - Clean & Professional Green
   =================================== */
[data-theme="light"] {
    /* Clean, bright backgrounds */
    --bg-dark: #f8fafc;
    --bg-darker: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.98);
    --bg-glass: rgba(62, 106, 68, 0.03);
    --bg-glass-hover: rgba(62, 106, 68, 0.06);

    /* High contrast, readable text */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;

    /* Clean borders */
    --border-color: rgba(15, 23, 42, 0.1);
    --border-glow: rgba(62, 106, 68, 0.5);

    /* Light mode gradients */
    --gradient-dark: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    --gradient-hero: radial-gradient(ellipse at top, rgba(62, 106, 68, 0.1) 0%, transparent 50%);

    /* Subtle, elegant shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 30px rgba(62, 106, 68, 0.2);

    /* Green accent colors for light mode */
    --primary: #3E6A44;
    --primary-dark: #234e2a;
    --primary-light: #6B9F71;
    --secondary: #8BCE93;
    --accent: #9CF4A7;
}


/* ===================================
   Light Mode Component Overrides
   =================================== */

/* Navigation */
[data-theme="light"] .navbar {
    background: transparent;
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .nav-link {
    color: #334155;
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
    color: #3E6A44;
}


/* Cards & Glass Effects */
[data-theme="light"] .glass-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .glass-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-color: rgba(62, 106, 68, 0.3);
}

[data-theme="light"] .floating-card {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

/* Buttons */
[data-theme="light"] .btn-primary {
    box-shadow: 0 4px 16px rgba(35, 78, 42, 0.3);
}

[data-theme="light"] .btn-secondary {
    border-color: rgba(15, 23, 42, 0.2);
    color: #334155;
}

[data-theme="light"] .btn-secondary:hover {
    background: rgba(62, 106, 68, 0.1);
    border-color: #3E6A44;
    color: #3E6A44;
}

[data-theme="light"] .btn-outline {
    border-color: #3E6A44;
    color: #3E6A44;
}

/* Skill Categories */
[data-theme="light"] .skill-category {
    background: rgba(255, 255, 255, 0.98);
}

[data-theme="light"] .skill-icon {
    background: linear-gradient(135deg, rgba(62, 106, 68, 0.1) 0%, rgba(107, 159, 113, 0.1) 100%);
}

[data-theme="light"] .skill-tools span {
    background: rgba(62, 106, 68, 0.1);
    color: #3E6A44;
}

/* Timeline */
[data-theme="light"] .timeline-content {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .timeline-date {
    background: rgba(62, 106, 68, 0.1);
    color: #3E6A44;
}

[data-theme="light"] .timeline::before {
    background: linear-gradient(180deg, #6B9F71 0%, #8BCE93 100%);
}

[data-theme="light"] .timeline-item::before {
    background: #6B9F71;
    border-color: #f8fafc;
}

[data-theme="light"] .marker-line {
    background: linear-gradient(to bottom, #3E6A44, #8BCE93, transparent);
    box-shadow: 0 0 15px rgba(62, 106, 68, 0.3);
}

[data-theme="light"] .marker-dot {
    box-shadow: 0 0 20px rgba(62, 106, 68, 0.4);
}

[data-theme="light"] .marker-dot::before {
    border-color: rgba(62, 106, 68, 0.3);
}

/* Portfolio Cards */
[data-theme="light"] .portfolio-card-bold {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}


/* Contact Form */
[data-theme="light"] .contact-form {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .contact-form input,
[data-theme="light"] .contact-form textarea {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.15);
}

[data-theme="light"] .contact-form input:focus,
[data-theme="light"] .contact-form textarea:focus {
    background: #ffffff;
    border-color: #3E6A44;
}

/* Footer */
[data-theme="light"] .footer {
    background: linear-gradient(180deg, #e2e8f0 0%, #cbd5e1 100%);
}

/* Background Animation - More visible */
[data-theme="light"] .bg-animation {
    opacity: 0.5;
}

[data-theme="light"] .floating-shapes span {
    background: linear-gradient(135deg, rgba(62, 106, 68, 0.15) 0%, rgba(107, 159, 113, 0.1) 100%);
}

/* Profile Rings */
[data-theme="light"] .profile-ring {
    border-color: rgba(62, 106, 68, 0.3);
}

/* Section Tags */
[data-theme="light"] .section-tag {
    background: rgba(62, 106, 68, 0.1);
    border-color: rgba(62, 106, 68, 0.3);
}


/* Stats Cards */
[data-theme="light"] .stat-card {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 21, 0, 0.08);
}

/* Skill Progress Bars */
[data-theme="light"] .skill-bar-track {
    background: rgba(35, 78, 42, 0.1);
}

/* Theme Toggle Button */
[data-theme="light"] .theme-toggle {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 21, 0, 0.1);
}

/* Back to Top Button */
[data-theme="light"] .back-to-top {
    box-shadow: 0 4px 20px rgba(35, 78, 42, 0.4);
}

/* Contact Modal */
[data-theme="light"] .contact-modal {
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(0, 21, 0, 0.2);
}

[data-theme="light"] .modal-form input,
[data-theme="light"] .modal-form textarea {
    background: #f8fff9;
    border-color: rgba(35, 78, 42, 0.15);
}

/* Cursor Trail - Visible in Light Mode */
[data-theme="light"] .cursor-trail {
    mix-blend-mode: multiply;
    filter: brightness(0.9);
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 100px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-primary);
    z-index: 999;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.theme-toggle:hover {
    transform: scale(1.1);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.theme-toggle .fa-sun {
    display: none;
}

.theme-toggle .fa-moon {
    display: block;
}

[data-theme="light"] .theme-toggle .fa-sun {
    display: block;
}

[data-theme="light"] .theme-toggle .fa-moon {
    display: none;
}



/* ===================================
   Reset & Base Styles
   =================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-darker);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--primary);
    color: var(--text-primary);
}

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

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

ul {
    list-style: none;
}

/* ===================================
   Background Animation
   =================================== */
.bg-animation {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: var(--gradient-dark);
    overflow: hidden;
}

.bg-animation::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    animation: pulse 8s ease-in-out infinite;
}

.floating-shapes span {
    position: absolute;
    display: block;
    width: 20px;
    height: 20px;
    background: rgba(62, 106, 68, 0.1);
    border-radius: 50%;
    animation: float 25s infinite;
}

.floating-shapes span:nth-child(1) {
    left: 10%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}

.floating-shapes span:nth-child(2) {
    left: 20%;
    width: 20px;
    height: 20px;
    animation-delay: 2s;
    animation-duration: 15s;
}

.floating-shapes span:nth-child(3) {
    left: 25%;
    animation-delay: 4s;
}

.floating-shapes span:nth-child(4) {
    left: 40%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
    animation-duration: 20s;
}

.floating-shapes span:nth-child(5) {
    left: 65%;
    animation-delay: 0s;
}

.floating-shapes span:nth-child(6) {
    left: 75%;
    width: 110px;
    height: 110px;
    animation-delay: 3s;
}

.floating-shapes span:nth-child(7) {
    left: 35%;
    width: 150px;
    height: 150px;
    animation-delay: 7s;
}

.floating-shapes span:nth-child(8) {
    left: 50%;
    width: 25px;
    height: 25px;
    animation-delay: 15s;
    animation-duration: 35s;
}

.floating-shapes span:nth-child(9) {
    left: 85%;
    width: 15px;
    height: 15px;
    animation-delay: 2s;
    animation-duration: 30s;
}

.floating-shapes span:nth-child(10) {
    left: 5%;
    width: 150px;
    height: 150px;
    animation-delay: 0s;
    animation-duration: 40s;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.5;
    }

    90% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* ===================================
   Utility Classes
   =================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.glass-card:hover {
    background: var(--bg-glass-hover);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}


/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn:hover::before {
    transform: translateX(100%);
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(62, 106, 68, 0.5);
}

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

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

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

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-outline i {
    margin-right: 8px;
}

.btn-full {
    width: 100%;
}

.btn i {
    font-size: 14px;
    transition: transform var(--transition-fast);
}

.btn:hover i {
    transform: translateX(5px);
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-normal);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 26, 13, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    padding: 15px 0;
    box-shadow: var(--shadow-md);
}



.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 5px 0;
}

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

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-fast);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 24px 60px;
    position: relative;
}

.hero-content {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(62, 106, 68, 0.15);
    border: 1px solid rgba(62, 106, 68, 0.3);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.hero-title {
    margin-bottom: 24px;
}

.hero-title .greeting {
    display: block;
    font-size: 24px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.hero-title .name {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(48px, 7vw, 72px);
    font-weight: 700;
    line-height: 1.1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title .surname {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(48px, 7vw, 72px);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
}

.hero-title .credentials {
    display: block;
    font-family: var(--font-body);
    font-size: clamp(14px, 2vw, 18px);
    font-weight: 500;
    color: var(--primary);
    margin-top: 8px;
    letter-spacing: 2px;
}

.hero-roles {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.role-item {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.role-divider {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 32px;
}

.hero-description strong {
    color: var(--primary-light);
}

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

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

.social-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 18px;
    transition: var(--transition-normal);
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-primary);
    transform: translateY(-5px) rotate(5deg);
    box-shadow: var(--shadow-glow);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
}

.profile-ring {
    position: absolute;
    inset: 0;
    border: 2px dashed var(--border-color);
    border-radius: 50%;
    animation: spin 30s linear infinite;
}

.profile-ring.ring-2 {
    inset: 30px;
    animation-direction: reverse;
    animation-duration: 25s;
    border-color: rgba(62, 106, 68, 0.2);
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.profile-image {
    position: absolute;
    inset: 60px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
}

.profile-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4px;
}

.profile-placeholder span {
    font-family: var(--font-display);
    font-size: 80px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    animation: floatCard 6s ease-in-out infinite;
    box-shadow: var(--shadow-md);
}

.floating-card i {
    color: var(--primary);
    font-size: 18px;
}

.floating-card.card-1 {
    top: 40px;
    right: 0;
    animation-delay: 0s;
}

.floating-card.card-2 {
    bottom: 80px;
    left: -20px;
    animation-delay: 2s;
}

.floating-card.card-3 {
    bottom: 20px;
    right: 40px;
    animation-delay: 4s;
}

.floating-card.card-4 {
    top: 80px;
    left: -30px;
    animation-delay: 3s;
}

@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Hero Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 13px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(12px);
        opacity: 0;
    }
}

/* ===================================
   Sections Common Styles
   =================================== */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(62, 106, 68, 0.15);
    border: 1px solid rgba(62, 106, 68, 0.3);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.section-line {
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 0 auto;
    border-radius: 2px;
}

.section-description {
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 18px;
    color: var(--text-secondary);
    text-align: center;
}

.section-description strong {
    color: var(--primary-light);
}

/* ===================================
   About Section
   =================================== */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-card {
    padding: 40px;
    margin-bottom: 30px;
}

.about-subtitle {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.about-subtitle::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.about-card p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

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

.about-card p strong {
    color: var(--primary-light);
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.highlight-item {
    display: flex;
    gap: 20px;
    padding: 24px;
}

.highlight-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #c2410c 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.3);
}

.highlight-icon i {
    font-size: 24px;
    color: #ffffff;
}


.highlight-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.highlight-content p {
    font-size: 14px;
    color: var(--text-secondary);
}

.highlight-content p strong {
    color: var(--primary-light);
}

/* About Stats */
.about-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-card {
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.stat-plus {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    position: absolute;
    top: 25px;
    margin-left: 5px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* ===================================
   Experience Section (Timeline)
   =================================== */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateX(-30px);
    animation: slideIn 0.6s forwards;
}

.timeline-item:nth-child(1) {
    animation-delay: 0.1s;
}

.timeline-item:nth-child(2) {
    animation-delay: 0.2s;
}

.timeline-item:nth-child(3) {
    animation-delay: 0.3s;
}

.timeline-item:nth-child(4) {
    animation-delay: 0.4s;
}

.timeline-item:nth-child(5) {
    animation-delay: 0.5s;
}

.timeline-item:nth-child(6) {
    animation-delay: 0.6s;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.marker-dot {
    width: 20px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    box-shadow: var(--shadow-glow);
    position: relative;
    z-index: 1;
}

.marker-dot::before {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px solid rgba(62, 106, 68, 0.3);
    border-radius: 50%;
    animation: ripple 2s infinite;
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.marker-line {
    width: 2px;
    flex-grow: 1;
    background: linear-gradient(to bottom, var(--primary), transparent);
    margin-top: 10px;
}

.timeline-content {
    flex-grow: 1;
    padding: 30px;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.company-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.company-location {
    font-size: 14px;
    color: var(--text-muted);
    display: block;
    margin-top: 4px;
}

.timeline-date {
    padding: 6px 16px;
    background: rgba(62, 106, 68, 0.15);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-light);
    white-space: nowrap;
}

.job-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 15px;
}

.job-title.secondary-title {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px dashed var(--border-color);
}

.sub-date {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.job-duties {
    margin-bottom: 20px;
}

.job-duties li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    font-size: 15px;
    color: var(--text-secondary);
}

.job-duties li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

.job-duties li strong {
    color: var(--primary-light);
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    padding: 6px 14px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ===================================
   Skills Section
   =================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.skill-category {
    padding: 35px;
    text-align: center;
}

.skill-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.skill-category:hover .skill-icon {
    transform: scale(1.1) rotate(5deg);
}

.skill-icon i {
    font-size: 32px;
    color: var(--text-primary);
}

.skill-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.skill-list {
    margin-bottom: 20px;
}

.skill-list li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 1px dashed var(--border-color);
}

.skill-list li:last-child {
    border-bottom: none;
}

.skill-tools {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.skill-tools span {
    padding: 5px 12px;
    background: rgba(62, 106, 68, 0.15);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-light);
}

/* ===================================
   Portfolio Section - Bold 2 Column
   =================================== */
.portfolio-grid-bold {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.portfolio-card-bold {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px 28px;
    background: var(--bg-glass);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.portfolio-card-bold::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    transition: all 0.3s ease;
}

.portfolio-card-bold:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.portfolio-card-bold:hover::before {
    width: 100%;
    opacity: 0.12;
}

/* Website-specific Colors */
/* Bless Every Name - Gold */
.card-bless::before {
    background: #eab308;
}

.card-bless {
    border-left-color: #eab308;
}

.card-bless .card-bold-icon {
    background: linear-gradient(135deg, #eab308 0%, #facc15 100%);
}

.card-bless:hover {
    border-color: #eab308;
}

/* MuviMatch - Pink */
.card-muvi::before {
    background: #ec4899;
}

.card-muvi {
    border-left-color: #ec4899;
}

.card-muvi .card-bold-icon {
    background: linear-gradient(135deg, #ec4899 0%, #f472b6 100%);
}

.card-muvi:hover {
    border-color: #ec4899;
}

/* Leefthigh Industries - Sky Blue */
.card-leefthigh::before {
    background: #6B9F71;
}

.card-leefthigh {
    border-left-color: #6B9F71;
}

.card-leefthigh .card-bold-icon {
    background: linear-gradient(135deg, #6B9F71 0%, #8BCE93 100%);
}

.card-leefthigh:hover {
    border-color: #6B9F71;
}

/* Bible Pattern Church - Green */
.card-bible::before {
    background: #22c55e;
}

.card-bible {
    border-left-color: #22c55e;
}

.card-bible .card-bold-icon {
    background: linear-gradient(135deg, #22c55e 0%, #4ade80 100%);
}

.card-bible:hover {
    border-color: #22c55e;
}

/* Mosvin Integrated - Orange */
.card-mosvin::before {
    background: #f97316;
}

.card-mosvin {
    border-left-color: #f97316;
}

.card-mosvin .card-bold-icon {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
}

.card-mosvin:hover {
    border-color: #f97316;
}

/* Moses Ogunsanya - Dark Blue */
.card-moses::before {
    background: #1e40af;
}

.card-moses {
    border-left-color: #1e40af;
}

.card-moses .card-bold-icon {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}

.card-moses:hover {
    border-color: #1e40af;
}

/* BNG Distribution - White */
.card-bng::before {
    background: #ffffff;
}

.card-bng {
    border-left-color: #ffffff;
}

.card-bng .card-bold-icon {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.card-bng .card-bold-icon i {
    color: #1e293b;
}

.card-bng:hover {
    border-color: #ffffff;
}

.card-more {
    border-style: dashed;
    opacity: 0.7;
}

.card-more::before {
    background: var(--primary);
}

.card-more {
    border-left-color: var(--primary);
}

.card-more .card-bold-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.card-more:hover {
    opacity: 1;
    border-color: var(--primary);
}

.card-bold-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.card-bold-icon i {
    font-size: 24px;
    color: white;
}

.card-bold-info {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.card-bold-info h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.card-bold-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.card-arrow {
    color: var(--text-muted);
    font-size: 16px;
    opacity: 0.5;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.portfolio-card-bold:hover .card-arrow {
    opacity: 1;
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .portfolio-grid-bold {
        grid-template-columns: 1fr;
    }

    .portfolio-card-bold {
        padding: 20px 24px;
    }

    .card-bold-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }

    .card-bold-icon i {
        font-size: 20px;
    }

    .card-bold-info h4 {
        font-size: 1.05rem;
    }
}

/* ===================================
   Education Section
   =================================== */
.education-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 60px;
}

.column-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 25px;
}

.column-title i {
    color: var(--primary);
}

.education-card {
    display: flex;
    gap: 20px;
    padding: 30px;
}

.degree-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.degree-icon i {
    font-size: 24px;
    color: var(--text-primary);
}

.degree-content h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.degree-content .institution {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.degree-content .year {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(62, 106, 68, 0.15);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-light);
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.cert-card {
    padding: 24px;
    position: relative;
}

.cert-year {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 4px 10px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
}

.cert-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    padding-right: 60px;
}

.cert-card p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Awards */
.awards-section {
    margin-top: 40px;
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.award-card {
    display: flex;
    gap: 20px;
    padding: 30px;
}

.award-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #c2410c 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.3);
}

.award-icon i {
    font-size: 24px;
    color: #ffffff;
}


.award-content h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.award-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.award-year {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-light);
}

/* ===================================
   Testimonials Section
   =================================== */
.testimonials {
    background: var(--bg-primary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    padding: 30px;
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(62, 106, 68, 0.15);
}

.testimonial-quote {
    font-size: 32px;
    color: var(--primary);
    opacity: 0.5;
    margin-bottom: 15px;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.author-platform {
    font-size: 0.85rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.author-platform i {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Trusted Companies Section
   =================================== */
.trusted-companies {
    background: var(--bg-secondary);
    padding: 60px 0;
}

.trusted-title {
    font-family: var(--font-display);
    text-align: center;
    margin-bottom: 40px;
}

.companies-slider {
    overflow: hidden;
    width: 100%;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.companies-track {
    display: flex;
    align-items: center;
    gap: 50px;
    animation: scroll-logos 25s linear infinite;
    width: max-content;
}

.companies-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-logos {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.company-logo {
    flex-shrink: 0;
}

.logo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 30px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
    min-width: 140px;
}

.logo-placeholder:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.logo-placeholder i {
    font-size: 32px;
    color: var(--primary);
}

.logo-placeholder span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    white-space: nowrap;
}

.logo-placeholder:hover span {
    color: var(--text-primary);
}

/* Company logo with actual image */
.logo-with-image {
    padding: 15px 20px;
}

.company-logo-img {
    width: 80px;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
}


/* ===================================
   Contact Section
   =================================== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    display: flex;
    gap: 20px;
    padding: 24px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon i {
    font-size: 20px;
    color: var(--text-primary);
}

.info-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.info-content p,
.info-content a {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

.info-content a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.social-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 20px;
    transition: var(--transition-normal);
}

.social-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-primary);
    transform: translateY(-5px);
}

/* Contact Form */
.contact-form {
    padding: 40px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    font-family: var(--font-primary);
    font-size: 16px;
    color: var(--text-primary);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(62, 106, 68, 0.2);
}

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

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--bg-darker);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    text-align: center;
}

.footer-brand {
    margin-bottom: 30px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 10px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 16px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

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

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.footer-tagline {
    font-size: 13px;
    color: var(--primary);
}

/* ===================================
   Back to Top Button
   =================================== */
.back-to-top {
    position: fixed;
    bottom: 100px;
    /* Moved higher to avoid overlapping with Charla chat */
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-normal);
    z-index: 999;
    box-shadow: var(--shadow-glow);
}


.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
}

/* ===================================
   Animations
   =================================== */
.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.animate-slide-up {
    opacity: 0;
    animation: slideUp 0.8s ease forwards;
}

.animate-slide-up-delay {
    opacity: 0;
    animation: slideUp 0.8s ease 0.2s forwards;
}

.animate-fade-in-delay {
    opacity: 0;
    animation: fadeIn 0.8s ease 0.3s forwards;
}

.animate-fade-in-delay-2 {
    opacity: 0;
    animation: fadeIn 0.8s ease 0.5s forwards;
}

.animate-fade-in-delay-3 {
    opacity: 0;
    animation: fadeIn 0.8s ease 0.7s forwards;
}

.animate-scale-in {
    opacity: 0;
    animation: scaleIn 0.8s ease 0.4s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta,
    .hero-social {
        justify-content: center;
    }

    .profile-wrapper {
        width: 300px;
        height: 300px;
        margin: 0 auto;
    }

    .floating-card.card-1 {
        top: 20px;
        right: -20px;
    }

    .floating-card.card-2 {
        bottom: 60px;
        left: -40px;
    }

    .floating-card.card-3 {
        bottom: 0;
        right: 20px;
    }

    .floating-card.card-4 {
        top: 60px;
        left: -40px;
    }

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

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

    .stat-card {
        flex: 1;
        min-width: 150px;
    }

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

    .education-grid {
        grid-template-columns: 1fr;
    }

    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        background: var(--bg-darker);
        border-left: 1px solid var(--border-color);
        transition: var(--transition-normal);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        padding-top: 100px;
    }

    .hero-roles {
        justify-content: center;
        flex-wrap: nowrap;
        gap: 8px;
    }

    .role-item {
        font-size: 14px;
    }

    .role-divider {
        width: 5px;
        height: 5px;
    }

    .profile-wrapper {
        width: 250px;
        height: 250px;
    }

    .profile-placeholder span {
        font-size: 50px;
    }

    .floating-card {
        padding: 10px 14px;
        font-size: 12px;
    }

    /* Hide scroll indicator on mobile to prevent collision with floating cards */
    .scroll-indicator {
        display: none;
    }

    /* Add more space below hero on mobile */
    .hero-content {
        padding-bottom: 40px;
    }

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

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .certifications-grid {
        grid-template-columns: 1fr;
    }

    .awards-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        flex-direction: column;
        gap: 20px;
    }

    .timeline-marker {
        flex-direction: row;
    }

    .marker-line {
        width: auto;
        height: 2px;
        flex-grow: 1;
        margin-top: 0;
        margin-left: 10px;
    }

    /* Move theme toggle lower on mobile to avoid overlap with Available badge */
    .theme-toggle {
        top: 180px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {

    /* Compact hero roles */
    .hero-roles {
        gap: 6px;
    }

    .role-item {
        font-size: 12px;
    }

    .role-divider {
        width: 4px;
        height: 4px;
    }

    .hero-cta {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 14px;
    }

    /* Compact stat cards - 2 column grid */
    .about-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-card {
        padding: 15px 10px;
        min-width: unset;
    }

    .stat-card::before {
        width: 3px;
    }

    .stat-number {
        font-size: 28px;
    }

    .stat-plus {
        font-size: 18px;
        top: 12px;
    }

    .stat-label {
        font-size: 11px;
        margin-top: 5px;
    }

    /* Smaller section headings */
    .section-header h2 {
        font-size: 24px;
    }

    .section-header p {
        font-size: 14px;
    }

    /* Compact cards */
    .glass-card {
        padding: 15px;
    }

    .timeline-content {
        padding: 15px;
    }

    .contact-form {
        padding: 20px;
    }

    /* Smaller text throughout */
    .hero-description {
        font-size: 14px;
    }

    .hero-title .name {
        font-size: 28px;
    }

    .hero-title .surname {
        font-size: 36px;
    }

    .hero-title .credentials {
        font-size: 12px;
    }

    /* Compact highlight items */
    .highlight-icon {
        width: 45px;
        height: 45px;
    }

    .highlight-icon i {
        font-size: 18px;
    }

    .highlight-content h4 {
        font-size: 14px;
    }

    .highlight-content p {
        font-size: 12px;
    }

    /* Smaller profile */
    .profile-wrapper {
        width: 200px;
        height: 200px;
    }

    /* Compact skill categories */
    .skill-category h4 {
        font-size: 14px;
    }

    .skill-tools span {
        font-size: 11px;
        padding: 4px 8px;
    }

    /* Compact certifications */
    .cert-logo {
        width: 50px;
        height: 50px;
    }

    .cert-content h4 {
        font-size: 14px;
    }

    .cert-content p {
        font-size: 11px;
    }

    /* Compact company logos */
    .company-logo-img {
        width: 50px;
    }

    .logo-placeholder {
        padding: 12px 15px;
        min-width: 100px;
    }

    .logo-placeholder span {
        font-size: 10px;
    }

    /* Floating cards smaller */
    .floating-card {
        padding: 8px 12px;
        font-size: 11px;
    }

    /* Available badge compact */
    .available-badge {
        padding: 8px 16px;
        font-size: 12px;
    }

    /* Section padding reduced */
    .section {
        padding: 60px 0;
    }

    /* Footer compact */
    .footer-content {
        padding: 30px 15px;
    }

    .footer-links a {
        font-size: 12px;
    }
}

/* ===================================
   Enhanced Animations & Effects
   =================================== */

/* Shimmer effect for elements */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Glow pulse for important elements */
.glow-pulse {
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(62, 106, 68, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(62, 106, 68, 0.6);
    }
}

/* Float animation for cards */
@keyframes floatUp {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Gradient border animation */
.gradient-border {
    position: relative;
    background: var(--bg-card);
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent), var(--primary));
    background-size: 400% 400%;
    border-radius: inherit;
    z-index: -1;
    animation: gradientRotate 3s ease infinite;
}

@keyframes gradientRotate {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Ripple effect for buttons */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:active::after {
    width: 300px;
    height: 300px;
}

/* Typewriter cursor */
.hero-typing::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: var(--primary);
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Scale in from center animation */
@keyframes scaleIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Slide in animations */
@keyframes slideInLeft {
    0% {
        transform: translateX(-50px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    0% {
        transform: translateX(50px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInUp {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Bounce animation */
@keyframes bounce {

    0%,
    20%,
    53%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    40%,
    43% {
        transform: translate3d(0, -20px, 0);
    }

    70% {
        transform: translate3d(0, -10px, 0);
    }

    90% {
        transform: translate3d(0, -4px, 0);
    }
}

/* Floating badge enhanced */
@keyframes floatBadge {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-8px) rotate(2deg);
    }

    75% {
        transform: translateY(-4px) rotate(-2deg);
    }
}

/* Background gradient animation */
.animated-gradient-bg {
    background: linear-gradient(-45deg, var(--bg-darker), var(--bg-dark), #0a1a0d, #0a1a0d);
    background-size: 400% 400%;
    animation: gradientBg 15s ease infinite;
}


@keyframes gradientBg {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Icon spin on hover */
.icon-spin:hover i {
    animation: iconSpin 0.6s ease;
}

@keyframes iconSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Underline slide animation */
.underline-slide {
    position: relative;
}

.underline-slide::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.underline-slide:hover::after {
    width: 100%;
}

/* 3D flip animation */
@keyframes flip3D {
    0% {
        transform: perspective(400px) rotateY(0);
    }

    100% {
        transform: perspective(400px) rotateY(360deg);
    }
}

/* Heartbeat for important elements */
@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    14% {
        transform: scale(1.1);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.1);
    }

    70% {
        transform: scale(1);
    }
}

/* Wave animation for text */
.wave-text span {
    display: inline-block;
    animation: wave 1s ease-in-out infinite;
}

@keyframes wave {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Spotlight effect */
.spotlight {
    position: relative;
    overflow: hidden;
}

.spotlight::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(62, 106, 68, 0.1) 0%, transparent 50%);
    animation: spotlight 10s linear infinite;
}

@keyframes spotlight {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Morphing blob background */
.morph-blob {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morphBlob 8s ease-in-out infinite;
}

@keyframes morphBlob {

    0%,
    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

/* Disable animations for reduced motion preference */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===================================
   Skill Visualization Progress Bars
   =================================== */
.skill-visualization {
    margin-top: 60px;
    padding: 40px;
}

.skill-viz-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 30px;
    text-align: center;
}

.skill-bars {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.skill-bar-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skill-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-bar-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.skill-bar-percent {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}

.skill-bar-track {
    height: 10px;
    background: var(--bg-glass);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}

.skill-bar-fill {
    height: 100%;
    width: 0;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.skill-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmerBar 2s infinite;
}

@keyframes shimmerBar {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.skill-bar-fill.animated {
    animation: fillPulse 2s ease-in-out infinite;
}

@keyframes fillPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

@media (max-width: 768px) {
    .skill-bars {
        grid-template-columns: 1fr;
    }

    .skill-visualization {
        padding: 25px;
        margin-top: 40px;
    }
}

/* ===================================
   Cursor Trail Effect
   =================================== */
.cursor-trail {
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    border-radius: 50%;
    mix-blend-mode: screen;
}

/* ===================================
   Contact Modal Popup
   =================================== */
.contact-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.contact-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.contact-modal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.contact-modal-overlay.active .contact-modal {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-header h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.modal-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.modal-form .form-group {
    margin-bottom: 20px;
}

.modal-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.modal-form input,
.modal-form textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font-primary);
    transition: all 0.3s ease;
}

.modal-form input:focus,
.modal-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(62, 106, 68, 0.2);
}

.modal-form input::placeholder,
.modal-form textarea::placeholder {
    color: var(--text-muted);
}

.modal-form textarea {
    resize: vertical;
    min-height: 100px;
}

.honeypot-field {
    position: absolute;
    left: -9999px;
}

@media (max-width: 480px) {
    .contact-modal {
        padding: 25px;
    }

    .modal-header h3 {
        font-size: 24px;
    }
}