/**
 * Modern Theme Styles
 * Clean design that matches the original portfolio styling
 */

/* Modern Theme Variables - using original fonts */
.theme-modern {
    --modern-bg-primary: #0a192f;
    --modern-bg-secondary: #112240;
    --modern-bg-tertiary: #233554;
    --modern-primary: #FF9000;
    --modern-primary-light: #FFa333;
    --modern-secondary: #FF6B00;
    --modern-accent: #22d3ee;
    --modern-accent-green: #10b981;
    --modern-text: #ccd6f6;
    --modern-text-dim: #8892b0;
    --modern-text-bright: #e6f1ff;
    --modern-border: rgba(255, 144, 0, 0.2);
    --modern-glass: rgba(255, 255, 255, 0.05);
    --modern-glass-border: rgba(255, 255, 255, 0.1);
    --modern-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --modern-glow: 0 0 40px rgba(255, 144, 0, 0.3);
}

/* Base Modern Styles - inherit original fonts */
.theme-modern body {
    background: var(--modern-bg-primary);
    color: var(--modern-text);
}

/* Remove animated gradient - solid background */
.theme-modern body::before {
    display: none;
}

/* Modern Header */
.theme-modern header {
    background: var(--modern-bg-primary);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--modern-glass-border);
}

.theme-modern header.scrolled {
    background: var(--modern-bg-primary);
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
}

.theme-modern .logo a {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 28px;
    color: var(--modern-primary);
    transition: transform 0.3s ease;
}

.theme-modern .logo a:hover {
    transform: scale(1.05);
}

.theme-modern .nav-links li a {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--modern-text-dim);
    position: relative;
    transition: color 0.3s ease;
}

.theme-modern .nav-links li a:hover {
    color: var(--modern-text-bright);
}

.theme-modern .nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--modern-primary);
    transition: width 0.3s ease, left 0.3s ease;
}

.theme-modern .nav-links li a:hover::after {
    width: 100%;
    left: 0;
}

.theme-modern .nav-links li a::before {
    color: var(--modern-primary);
}

/* Modern Hamburger */
.theme-modern .bar {
    background: var(--modern-primary);
}

/* Hero Section */
.theme-modern .hero-section {
    position: relative;
    overflow: hidden;
}

.theme-modern .greeting {
    color: var(--modern-primary);
    opacity: 0;
    animation: modernFadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.theme-modern .name {
    color: var(--modern-text-bright);
    opacity: 0;
    animation: modernFadeInUp 0.8s ease forwards;
    animation-delay: 0.4s;
}

@keyframes modernGradientText {

    0%,
    100% {
        background-position: 0% center;
    }

    50% {
        background-position: 200% center;
    }
}

.theme-modern .title {
    color: var(--modern-text-dim);
    opacity: 0;
    animation: modernFadeInUp 0.8s ease forwards;
    animation-delay: 0.6s;
}

.theme-modern .tagline {
    opacity: 0;
    animation: modernFadeInUp 0.8s ease forwards;
    animation-delay: 0.8s;
}

.theme-modern .tagline .highlight {
    color: var(--modern-primary);
}

.theme-modern .description {
    color: var(--modern-text-dim);
    font-size: 18px;
    line-height: 1.8;
    opacity: 0;
    animation: modernFadeInUp 0.8s ease forwards;
    animation-delay: 1s;
}

/* Modern Buttons */
.theme-modern .btn {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0;
    animation: modernFadeInUp 0.8s ease forwards;
    animation-delay: 1.2s;
}

.theme-modern .primary-btn {
    background: var(--modern-primary);
    border: none;
    color: var(--modern-bg-primary);
    box-shadow: 0 10px 40px rgba(255, 144, 0, 0.3);
}

.theme-modern .primary-btn:hover {
    background: var(--modern-primary-light);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 60px rgba(255, 144, 0, 0.4);
}

.theme-modern .primary-btn span {
    position: relative;
    z-index: 1;
}

.theme-modern .secondary-btn {
    background: transparent;
    border: 2px solid var(--modern-primary);
    color: var(--modern-primary);
    backdrop-filter: blur(10px);
}

.theme-modern .secondary-btn:hover {
    background: rgba(255, 144, 0, 0.1);
    border-color: var(--modern-primary-light);
    color: var(--modern-primary-light);
    transform: translateY(-3px);
}

/* Section Styles */
.theme-modern .section-title {
    font-family: var(--font-display);
    font-weight: 600;
}

.theme-modern .section-title::after {
    background: var(--modern-primary);
}

.theme-modern .section-number {
    color: var(--modern-primary);
}

/* About Section */
.theme-modern .about-text p {
    color: var(--modern-text-dim);
    line-height: 1.9;
}

.theme-modern .skills-list li {
    font-family: var(--font-body);
    color: var(--modern-text);
    transition: transform 0.3s ease, color 0.3s ease;
}

.theme-modern .skills-list li:hover {
    transform: translateX(8px);
    color: var(--modern-primary-light);
}

.theme-modern .skill-icon {
    color: var(--modern-primary);
    transition: transform 0.3s ease;
}

.theme-modern .skills-list li:hover .skill-icon {
    transform: scale(1.2);
}

/* Modern Image Container */
.theme-modern .image-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--modern-shadow);
    position: relative;
}

.theme-modern .image-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 144, 0, 0.2);
    opacity: 0.5;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.theme-modern .image-container:hover::before {
    opacity: 0;
}

.theme-modern .image-container::after {
    border: 2px solid var(--modern-primary);
    border-radius: 20px;
    opacity: 0.5;
    transition: all 0.4s ease;
}

.theme-modern .image-container:hover::after {
    top: 10px;
    left: 10px;
    opacity: 1;
}

.theme-modern .image-container img {
    filter: grayscale(20%) contrast(1.1);
    transition: all 0.5s ease;
    border-radius: 20px;
}

.theme-modern .image-container:hover img {
    filter: none;
    transform: scale(1.05);
}

/* Timeline / Experience */
.theme-modern .timeline::before {
    background: var(--modern-primary);
    width: 3px;
    border-radius: 3px;
}

.theme-modern .timeline-item::before {
    background: var(--modern-bg-primary);
    border: 3px solid var(--modern-primary);
    box-shadow: 0 0 20px rgba(255, 144, 0, 0.4);
    transition: all 0.3s ease;
}

.theme-modern .timeline-item:hover::before {
    background: var(--modern-primary);
    transform: scale(1.2);
}

.theme-modern .timeline-content {
    background: var(--modern-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--modern-glass-border);
    border-radius: 20px;
    box-shadow: var(--modern-shadow);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.theme-modern .timeline-content:hover {
    transform: translateY(-8px) translateX(5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), var(--modern-glow);
    border-color: var(--modern-primary);
}

.theme-modern .job-title {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--modern-text-bright);
}

.theme-modern .company {
    color: var(--modern-primary);
    font-weight: 600;
}

.theme-modern .job-period {
    color: var(--modern-text-dim);
    font-size: 14px;
}

.theme-modern .job-description li {
    color: var(--modern-text-dim);
    position: relative;
    padding-left: 5px;
    transition: color 0.3s ease;
}

.theme-modern .job-description li:hover {
    color: var(--modern-text);
}

.theme-modern .job-description li::marker {
    color: var(--modern-primary);
}

/* Certification Cards */
.theme-modern .cert-card {
    background: var(--modern-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--modern-glass-border);
    border-radius: 20px;
    box-shadow: var(--modern-shadow);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 1;
    transform: none;
    animation: none;
}

.theme-modern .cert-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), var(--modern-glow);
    border-color: var(--modern-primary);
}

.theme-modern .cert-icon {
    color: var(--modern-primary);
    font-size: 32px;
    transition: transform 0.3s ease;
}

.theme-modern .cert-card:hover .cert-icon {
    transform: scale(1.1) rotate(5deg);
}

.theme-modern .cert-details h3 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--modern-text-bright);
}

.theme-modern .cert-issuer {
    color: var(--modern-primary-light);
}

.theme-modern .cert-date {
    color: var(--modern-text-dim);
}

/* Contact Section */
.theme-modern .contact-intro {
    color: var(--modern-text-dim);
    font-size: 18px;
}

.theme-modern .form-group label {
    font-family: var(--font-display);
    color: var(--modern-text);
    font-weight: 500;
}

.theme-modern .form-group input,
.theme-modern .form-group textarea {
    background: var(--modern-glass);
    border: 1px solid var(--modern-glass-border);
    border-radius: 12px;
    color: var(--modern-text);
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.theme-modern .form-group input:focus,
.theme-modern .form-group textarea:focus {
    border-color: var(--modern-primary);
    background: rgba(255, 144, 0, 0.05);
    box-shadow: 0 0 0 4px rgba(255, 144, 0, 0.1);
}

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

.theme-modern .contact-item i {
    color: var(--modern-primary);
}

.theme-modern .contact-item a,
.theme-modern .contact-item span {
    color: var(--modern-text-dim);
    transition: color 0.3s ease;
}

.theme-modern .contact-item a:hover {
    color: var(--modern-primary-light);
}

.theme-modern .social-links a {
    color: var(--modern-text-dim);
    transition: all 0.3s ease;
}

.theme-modern .social-links a:hover {
    color: var(--modern-primary-light);
    transform: translateY(-5px) scale(1.1);
}

/* Case Study Cards - match cert card glassmorphism */
.theme-modern .case-card {
    background: var(--modern-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--modern-glass-border);
    border-top: 3px solid var(--modern-primary);
    border-radius: 20px;
    box-shadow: var(--modern-shadow);
    opacity: 1;
    transform: none;
    animation: none;
}

.theme-modern .case-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), var(--modern-glow);
    border-color: var(--modern-primary);
    border-top-color: var(--modern-primary);
}

/* Footer */
.theme-modern footer {
    background: transparent;
    border-top: 1px solid var(--modern-glass-border);
}

.theme-modern .footer-content p {
    color: var(--modern-text-dim);
    font-family: var(--font-body);
}

.theme-modern .footer-links a {
    color: var(--modern-text-dim);
    transition: color 0.3s ease;
}

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

/* Side Elements */
.theme-modern .email-side a {
    color: var(--modern-text-dim);
    transition: all 0.3s ease;
}

.theme-modern .email-side a:hover {
    color: var(--modern-primary-light);
}

.theme-modern .email-side::after,
.theme-modern .social-side::after {
    background: var(--modern-primary);
}

.theme-modern .social-side a {
    color: var(--modern-text-dim);
    transition: all 0.3s ease;
}

.theme-modern .social-side a:hover {
    color: var(--modern-primary-light);
    transform: translateY(-3px);
}

/* Animations */
@keyframes modernFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes modernFloat {

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

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

@keyframes modernPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 144, 0, 0.4);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(255, 144, 0, 0);
    }
}

/* Scroll-triggered animation classes */
.theme-modern .animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.theme-modern .animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.theme-modern .animate-on-scroll.delay-1 {
    transition-delay: 0.1s;
}

.theme-modern .animate-on-scroll.delay-2 {
    transition-delay: 0.2s;
}

.theme-modern .animate-on-scroll.delay-3 {
    transition-delay: 0.3s;
}

.theme-modern .animate-on-scroll.delay-4 {
    transition-delay: 0.4s;
}

.theme-modern .animate-on-scroll.delay-5 {
    transition-delay: 0.5s;
}

/* Magnetic button effect area */
.theme-modern .magnetic-area {
    position: relative;
}

/* Particle enhancements for modern theme */
.theme-modern #particle-canvas {
    opacity: 0.8;
}

/* Modern blob shapes */
.theme-modern .blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
    animation: modernFloat 8s ease-in-out infinite;
}

.theme-modern .blob-1 {
    width: 600px;
    height: 600px;
    background: var(--modern-primary);
    top: -200px;
    right: -200px;
}

.theme-modern .blob-2 {
    width: 400px;
    height: 400px;
    background: var(--modern-secondary);
    bottom: -100px;
    left: -100px;
    animation-delay: -4s;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .theme-modern .name {
        font-size: clamp(32px, 8vw, 64px);
    }

    .theme-modern .timeline-content,
    .theme-modern .cert-card,
    .theme-modern .case-card {
        border-radius: 16px;
    }

    .theme-modern .btn {
        border-radius: 10px;
    }

    .theme-modern .description {
        font-size: 16px;
    }

    /* Hide torch on mobile */
    #torch-overlay {
        display: none;
    }

    /* Collapse experience bullets on mobile */
    .theme-modern .job-description {
        display: none !important;
    }

    .theme-modern .show-details-btn {
        display: inline-flex !important;
    }
}

@media screen and (max-width: 480px) {
    .theme-modern .title {
        font-size: clamp(18px, 5vw, 28px);
    }

    .theme-modern .tagline .highlight {
        font-size: 14px;
    }
}