/* ==========================================================================
   CodingHero Landing Page - Desktop Styles
   ========================================================================== */

/* Variables & Root */
:root {
    /* Colors */
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #1f2937;
    --accent-color: #f59e0b;
    --accent-hover: #d97706;
    
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
    
    /* Spacing */
    --section-padding: 120px;
    --section-padding-small: 80px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

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

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

/* Navigation */
.navbar {
    padding: 1.25rem 0;
    background: var(--gradient-primary);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.navbar.scrolled {
    padding: 0.75rem 0;
    box-shadow: var(--shadow-lg);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
}

.navbar-brand:hover {
    color: rgba(255, 255, 255, 0.9);
}

.brand-icon {
    font-size: 1.75rem;
    color: white;
}

.brand-text {
    font-family: var(--font-display);
    color: white;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar.navbar .nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    padding: 0.625rem 1rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 8px;
    transition: var(--transition-base);
    margin: 0 0.25rem;
}

.navbar.navbar .nav-link:hover,
.navbar.navbar .nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.15);
}

.navbar.navbar .nav-link i {
    font-size: 1rem;
    opacity: 0.9;
}

.navbar.navbar .nav-link:hover i,
.navbar.navbar .nav-link.active i {
    opacity: 1;
}

.navbar .btn-primary {
    padding: 0.5rem 1.5rem;
    font-size: 0.9375rem;
}

.navbar .btn-primary:hover {
    transform: translateY(-2px);
}

/* Buttons */
.btn {
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn.w-100 {
    display: flex;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
    color: white;
}

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

.btn-outline-secondary:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

.btn-outline-dark:hover {
    background: var(--text-primary);
    border-color: var(--text-primary);
    color: white;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

/* Section Utilities */
section {
    padding: var(--section-padding) 0;
}

.section-label {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-title {
    margin-bottom: 1.5rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 180px 0 120px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #f0f9ff 100%);
    background-image: 
        url("data:image/svg+xml,%3Csvg width='84' height='48' viewBox='0 0 84 48' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h12v6H0V0zm28 8h12v6H28V8zm14-8h12v6H42V0zm14 0h12v6H56V0zm0 8h12v6H56V8zM42 8h12v6H42V8zm0 16h12v6H42v-6zm14-8h12v6H56v-6zm14 0h12v6H70v-6zm0-16h12v6H70V0zM28 32h12v6H28v-6zM14 16h12v6H14v-6zM0 24h12v6H0v-6zm0 8h12v6H0v-6zm14 0h12v6H14v-6zm14 8h12v6H28v-6zm-14 0h12v6H14v-6zm28 0h12v6H42v-6zm14-8h12v6H56v-6zm0-8h12v6H56v-6zm14 8h12v6H70v-6zm0 8h12v6H70v-6zM14 24h12v6H14v-6zm14-8h12v6H28v-6zM14 8h12v6H14V8zM0 8h12v6H0V8z' fill='%232563eb' fill-opacity='0.04' fill-rule='evenodd'/%3E%3C/svg%3E"),
        linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #f0f9ff 100%);
    position: relative;
    overflow: hidden;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #92400e;
    margin-bottom: 1.5rem;
}

.hero-badge i {
    color: #f59e0b;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 700px;
}

.hero-subtitle strong {
    color: var(--text-primary);
}

.hero-description {
    margin-bottom: 2.5rem;
    max-width: 700px;
}

.hero-description p {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.hero-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hero-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.hero-list li i {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.hero-list li strong {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.hero-list li span {
    display: block;
    color: var(--text-secondary);
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    position: relative;
}

.code-window {
    background: var(--secondary-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    animation: float 6s ease-in-out infinite;
}

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

.window-header {
    background: #374151;
    padding: 0.75rem 1rem;
    display: flex;
    gap: 0.5rem;
}

.window-title {
    color: white;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.window-body {
    padding: 1.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

.code-line {
    display: block;
    color: #d1d5db;
    line-height: 1.8;
}

.code-keyword { color: #c084fc; }
.code-function { color: #60a5fa; }
.code-string { color: #34d399; }
.code-number { color: #fb923c; }

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--gradient-primary);
    top: -300px;
    right: -200px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--gradient-accent);
    bottom: -200px;
    left: -100px;
}

/* About Section */
.about-section {
    background: var(--bg-white);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.profile-avatar-box .badge {
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.375rem 0.75rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.profile-avatar {
    border: 3px solid #f0f9ff;
}

.about-guarantees {
    margin-top: 4rem;
}

.guarantee-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    border: 2px solid var(--border-color);
    height: 100%;
    transition: var(--transition-base);
}

.guarantee-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.guarantee-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.75rem;
    margin: 0 auto 1.5rem;
}

.guarantee-card h3 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.guarantee-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* Skills Section */
.skills-section {
    background: var(--bg-light);
}

.skill-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    height: 100%;
    transition: var(--transition-base);
    overflow: hidden;
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.skill-card-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
}

.skill-card-header i {
    font-size: 2rem;
}

.skill-card-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: white;
}

.cms-header {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.language-header {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.framework-header {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

.ecommerce-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.devops-header {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.api-header {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.ai-header {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.skill-card-body {
    padding: 1.5rem;
}

.skill-item-new {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.skill-item-new:last-child {
    border-bottom: none;
}

.skill-name {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.skill-desc {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Realisations Section */
.realisations-section {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: white;
}

.realisations-section .section-label {
    color: rgba(255, 255, 255, 0.8);
}

.realisations-section .section-title {
    color: white;
}

.realisations-section .section-description {
    color: rgba(255, 255, 255, 0.7);
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-base);
    height: 100%;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

.project-link {
    display: block;
    position: relative;
    overflow: hidden;
}

.project-image {
    background-size: cover;
    background-position: center;
    padding: 0;
    height: 240px;
    position: relative;
    overflow: hidden;
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.3) 0%, rgba(59, 130, 246, 0.2) 100%);
    opacity: 0;
    transition: var(--transition-base);
}

.project-link:hover .project-image::before {
    opacity: 1;
}

.project-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    z-index: 2;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(37, 99, 235, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-base);
}

.project-overlay i {
    font-size: 3rem;
    color: white;
    transform: scale(0.8);
    transition: var(--transition-base);
}

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

.project-link:hover .project-overlay i {
    transform: scale(1);
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: white;
}

.project-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.project-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
}

.project-tags li {
    padding: 0.375rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.realisations-section .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.realisations-section .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
    transform: translateY(-2px);
}

/* Social Proof Section */
.social-proof-section {
    background: white;
}

.metric-card {
    transition: var(--transition-base);
}

.metric-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.metric-icon i {
    font-size: 2.5rem;
}

.metric-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 1rem 0 0.5rem;
}

.metric-denominator,
.metric-suffix {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.metric-sublabel {
    margin-top: 0.25rem;
}

.awards-container {
    position: relative;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid rgba(217, 119, 6, 0.3);
}

.awards-title {
    font-size: 1.75rem;
}

.medal-rank-bg {
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 120px;
    font-weight: 900;
    color: rgba(120, 53, 15, 0.08);
    z-index: 0;
    line-height: 1;
}

.award-card {
    transition: var(--transition-base);
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(10px);
    border: 0;
}

.award-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.8) !important;
}

.award-medal i {
    font-size: 3.5rem;
}
    font-weight: 700;
    color: var(--accent-color);
    box-shadow: var(--shadow-md);
}

.award-card h4 {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.award-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* Contact Section */
.contact-section {
    background-color: #f9fafb;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%232563eb' fill-opacity='0.03' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
    border-top: 1px solid var(--border-color);
    position: relative;
}

.contact-cta {
    padding-right: 2rem;
}

.contact-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

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

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1rem;
    font-size: 1.0625rem;
    color: var(--text-primary);
}

.benefit-item i {
    color: var(--primary-color);
    font-size: 1.375rem;
    flex-shrink: 0;
}

.contact-form-wrapper {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.08);
}

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

.form-control {
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.form-info {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.form-info i {
    color: var(--primary-color);
    margin-top: 2px;
}

.form-info small {
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 0;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.footer-copyright .fw-bold {
    color: white;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.footer-signature {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8125rem;
    font-style: italic;
}

.footer .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 0.9375rem;
    padding: 0.5rem 1.25rem;
}

.footer .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

/* Scroll to Top */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    z-index: 1000;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* Utilities */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Card Hover Effects (moved from JS for performance) */
.skill-card,
.metric-card,
.guarantee-card {
    transition: transform 0.25s ease;
}

.skill-card:hover,
.metric-card:hover,
.guarantee-card:hover {
    transform: translateY(-8px);
}

/* Slide In Up Animation (moved from JS) */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
