/* 
    AFS Group Corporate CSS
    Aesthetic: Light Theme, Gold Accents (Matched to PDF)
*/

:root {
    --bg-main: #ffffff;
    --bg-alt: #f9f9fb;
    --text-primary: #141211;
    --text-secondary: #555555;
    --accent-main: #efb01d;
    --accent-light: #fed33e;
    --accent-dark: #3d3d3d;
    --card-bg: #ffffff;
    --card-border: rgba(0, 0, 0, 0.05);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 40px rgba(239, 176, 29, 0.2);
    --nav-height: 100px;
    --font-main: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
}

body {
    position: relative;
    overflow-x: hidden;
    line-height: 1.6;
}

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

p {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 400;
}

/* Global Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.text-gradient {
    background: linear-gradient(135deg, var(--accent-main) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.center-mx {
    margin-left: auto;
    margin-right: auto;
}

/* Abstract Background Features */
.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.3;
    animation: float 20s infinite ease-in-out alternate;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: rgba(239, 176, 29, 0.4);
    top: -100px;
    left: -200px;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: rgba(254, 211, 62, 0.3);
    top: 40%;
    right: -250px;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 100px) scale(1.1); }
}

/* Card Style */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Increased logo size here */
.logo img {
    height: 90px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-links li a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: var(--accent-main);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-main) 0%, var(--accent-light) 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(239, 176, 29, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(239, 176, 29, 0.5);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: var(--accent-main);
    color: #fff;
    transform: translateY(-2px);
}

/* Nav Specific Button */
.nav-links .btn-primary {
    padding: 10px 24px;
    font-size: 0.9rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 0;
    text-align: center;
    position: relative;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.95)),
        url('../assets/digi_pic.jpg');
    background-size: cover;
    background-position: center center;
}

.hero-subtitle {
    font-size: 1.2rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 16px;
    animation: fadeInDown 1s ease 0.2s both;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.1;
    margin-bottom: 24px;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-description {
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    animation: fadeInUp 1s ease 0.8s both;
}

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

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

/* Sections General */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.section-subtitle {
    margin-top: 16px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

/* About Section */
.about {
    background: var(--bg-alt);
}
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.about-card {
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--accent-main);
    transition: height 0.4s ease;
}

.about-card:hover::before {
    height: 100%;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--accent-main);
    margin-bottom: 24px;
}

.about-card h3 {
    margin-bottom: 16px;
    font-size: 1.5rem;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-icon {
    font-size: 3rem;
    color: var(--accent-main);
    margin-bottom: 24px;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 176, 29, 0.1);
    border-radius: 16px;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--accent-main) 0%, var(--accent-light) 100%);
    color: #fff;
    transform: scale(1.1);
}

.service-card h3 {
    margin-bottom: 16px;
    font-size: 1.3rem;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(239, 176, 29, 0.2);
}

/* Workflow Timeline */
.workflow {
    background: var(--bg-alt);
}
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50px;
    width: 2px;
    background: rgba(0, 0, 0, 0.1);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
    padding-left: 20px;
}

.timeline-count {
    width: 60px;
    height: 60px;
    background: #fff;
    border: 2px solid var(--accent-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-main);
    z-index: 10;
    box-shadow: 0 5px 15px rgba(239, 176, 29, 0.2);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.timeline-content {
    margin-left: 30px;
    width: 100%;
    padding: 24px;
}

.timeline-content h3 {
    font-size: 1.2rem;
    margin: 0;
}

.timeline-item:hover .timeline-count {
    background: linear-gradient(135deg, var(--accent-main), var(--accent-light));
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-hover);
}

/* Clients Grid */
.clients-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.client-badge {
    background: #fff;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-soft);
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    cursor: default;
    font-weight: 500;
}

.client-badge:hover {
    color: var(--text-primary);
    border-color: var(--accent-main);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}



/* Footer & Contact */
.footer {
    background: var(--bg-main);
    color: var(--text-primary);
    padding: 80px 0 20px;
    border-top: 1px solid var(--card-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 60px;
    margin-bottom: 16px;
    /* Logo seamlessly blends with the light background now */
}

.footer-contact h3, .footer-social h3 {
    margin-bottom: 24px;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.footer-brand p {
    color: var(--text-secondary);
}

.contact-list {
    list-style: none;
}

.contact-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.contact-list p {
    color: var(--text-secondary);
}

.contact-list i {
    color: var(--accent-main);
    font-size: 1.2rem;
    margin-top: 4px;
}

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

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-soft);
}

.social-icons a:hover {
    background: var(--accent-main);
    border-color: var(--accent-main);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--card-border);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Scroll Animations */
.fade-in-section {
    opacity: 1;
    transform: none;
    visibility: visible;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
    visibility: visible;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        padding: 24px;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 16px;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-count {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .timeline-item {
        padding-left: 10px;
    }
}
