/* ========================================
   HOME PAGE CSS - LinkCodeAI
   ======================================== */

/* === VARIABLES === */
:root {
    --white: #ffffff;
    --black: #000000;
    --gray-light: #f5f7fa;
    --gray-medium: #6b7280;
    --orange-primary: #ff6b35;
    --orange-hover: #ff5722;
    --green-accent: #10b981;
    --blue-hover: #3b82f6;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.4s ease;
}

/* === GLOBAL === */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--black);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    position: relative;
    min-height: 600px;
    height: 80vh;
    max-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 100%);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 40px;
}

.breadcrumbs ol {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumbs li {
    color: var(--gray-medium);
    font-size: 14px;
}

.breadcrumbs a {
    color: var(--gray-medium);
    text-decoration: none;
    transition: color var(--transition);
}

.breadcrumbs a:hover {
    color: var(--orange-primary);
}

/* Hero Content */
.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-headline {
    font-size: 56px;
    font-weight: 800;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease;
}

.hero-subheadline {
    font-size: 20px;
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--orange-primary), var(--orange-hover));
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    transition: all var(--transition-normal);
    animation: fadeInUp 0.8s ease 0.4s backwards;
    position: relative;
    overflow: hidden;
}

.hero-cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.hero-cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.hero-cta-button:hover {
    background: linear-gradient(135deg, var(--blue-hover), #2563eb);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
}

.hero-cta-button:active {
    transform: translateY(-3px) scale(1.02);
}

.cta-icon {
    transition: transform var(--transition-normal);
    position: relative;
    z-index: 1;
}

.hero-cta-button:hover .cta-icon {
    transform: translateX(8px) scale(1.2);
    animation: arrowBounce 0.6s ease;
}

@keyframes arrowBounce {
    0%, 100% { transform: translateX(8px) scale(1.2); }
    50% { transform: translateX(12px) scale(1.2); }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   INTRO SECTION
   ======================================== */
.intro-section {
    padding: 80px 0;
    background-color: var(--gray-light);
    margin-top: 0;
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 50px;
    align-items: center;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 30px;
}

.intro-text p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--gray-medium);
}

.intro-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--green-accent), #059669);
    border-radius: 50%;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services-section {
    padding: 100px 0;
    background-color: var(--white);
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--gray-medium);
    margin-bottom: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--white);
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(16, 185, 129, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--orange-primary);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.25);
    background: linear-gradient(180deg, #ffffff, #f9fafb);
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--green-accent), #059669);
    border-radius: 50%;
    color: var(--white);
    margin-bottom: 25px;
    transition: all var(--transition-slow);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.service-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 10px;
    transition: transform var(--transition-slow);
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, var(--orange-primary), var(--orange-hover));
}

.service-card:hover .service-icon img {
    transform: scale(1.1) rotate(-10deg);
}

.service-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 15px;
}

.service-description {
    font-size: 16px;
    color: var(--gray-medium);
    margin-bottom: 25px;
    line-height: 1.6;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--orange-primary);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-normal);
    position: relative;
    padding: 8px 0;
}

.service-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--orange-primary), var(--green-accent));
    transition: width var(--transition-normal);
}

.service-link:hover::before {
    width: 100%;
}

.service-link:hover {
    color: var(--orange-hover);
    gap: 15px;
    transform: translateX(5px);
}

.service-link svg {
    transition: all var(--transition-normal);
}

.service-link:hover svg {
    transform: translateX(5px) scale(1.3);
    animation: arrowPulse 0.6s ease;
}

@keyframes arrowPulse {
    0%, 100% { transform: translateX(5px) scale(1.3); }
    50% { transform: translateX(8px) scale(1.5); }
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */
.testimonials-section {
    padding: 100px 0;
    background-color: var(--gray-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.testimonial-card {
    background: var(--white);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 120px;
    font-family: Georgia, serif;
    color: rgba(16, 185, 129, 0.05);
    line-height: 0;
    transition: all var(--transition-normal);
}

.testimonial-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    border-color: var(--green-accent);
}

.testimonial-card:hover::before {
    color: rgba(16, 185, 129, 0.15);
    transform: scale(1.1);
}

.testimonial-rating {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
}

.testimonial-quote {
    font-size: 16px;
    font-style: italic;
    color: var(--gray-medium);
    margin-bottom: 25px;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--green-accent), #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.author-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 5px;
}

.author-company {
    font-size: 14px;
    color: var(--gray-medium);
}

/* ========================================
   CLIENTS SECTION
   ======================================== */
.clients-section {
    padding: 80px 0;
    background-color: var(--white);
    overflow: hidden;
}

.clients-slider {
    position: relative;
    overflow: hidden;
    padding: 40px 0;
}

.clients-track {
    display: flex;
    gap: 60px;
    animation: scroll 30s linear infinite;
}

.client-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: all var(--transition-normal);
    padding: 10px 20px;
    position: relative;
}

.client-logo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(16, 185, 129, 0.1), transparent);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.client-logo:hover::before {
    opacity: 1;
}

.client-logo:hover {
    opacity: 1;
    transform: scale(1.1);
}

.client-logo img {
    max-width: 140px;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter var(--transition-normal), transform var(--transition-normal);
}

.client-logo:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ========================================
   FINAL CTA SECTION
   ======================================== */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #0a1929 0%, #1e3a5f 100%);
    color: var(--white);
    text-align: center;
    margin-bottom: 0;
}

.cta-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
}

.cta-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--orange-primary), var(--orange-hover));
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    transition: all var(--transition);
}

.cta-button:hover {
    background: linear-gradient(135deg, var(--orange-hover), #e64a19);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .hero-headline {
        font-size: 42px;
    }
    
    .intro-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .intro-icon {
        margin: 0 auto;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero-section {
        min-height: 500px;
        height: 70vh;
        max-height: 600px;
    }
    
    .hero-headline {
        font-size: 32px;
    }
    
    .hero-subheadline {
        font-size: 16px;
    }
    
    .hero-cta-button {
        padding: 15px 30px;
        font-size: 16px;
    }
    
    .intro-section,
    .services-section,
    .testimonials-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-section {
        padding: 60px 0;
    }
    
    .cta-title {
        font-size: 28px;
    }
    
    .cta-subtitle {
        font-size: 16px;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
.hero-cta-button:focus-visible,
.service-link:focus-visible,
.cta-button:focus-visible {
    outline: 3px solid var(--green-accent);
    outline-offset: 3px;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}