:root {
    --primary-color: #ffd700; /* Gold */
    --secondary-color: #1e40af; /* Royal Blue */
    --bg-color: #000000;
    --card-bg: #111111;
    --text-color: #ffffff;
    --text-muted: #aaaaaa;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
    width: 100%;
    overflow-wrap: break-word;
}

/* Navbar */
header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 1px;
}

nav {
    display: flex;
    align-items: center;
    gap: 30px; /* Consistent spacing for all items */
}

nav a, .dropdown-toggle {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition);
    margin: 0; /* Remove old margins */
}

nav a:hover, nav a.active, .dropdown:hover .dropdown-toggle {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

/* Dynamic Dropdown Menu Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 15, 15, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.1);
    min-width: 200px;
    border-radius: 10px;
    padding: 10px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 2000;
    margin-top: 0; /* Align perfectly with the top bar */
}

/* Invisible bridge to prevent menu from closing on hover move */
.dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 20px;
    display: block;
}

.dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeInDown 0.3s ease;
}

.dropdown-menu a {
    display: block;
    margin: 0 !important;
    padding: 12px 20px;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background: rgba(255, 215, 0, 0.05);
    color: var(--primary-color);
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.mobile-menu-toggle {
    display: none;
    font-size: 28px;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    transform: scale(1.1);
}

.header-contact { margin-left: 30px; }

@media (max-width: 992px) { 
    .header-contact { display: none; }
    .mobile-menu-toggle { display: block; }
    
    .nav-container { position: relative; }
    
    nav.main-nav { 
        position: absolute;
        top: calc(100% + 20px);
        left: 0;
        width: 100%;
        background: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        gap: 0;
        border-top: 2px solid var(--primary-color);
        box-shadow: 0 20px 40px rgba(0,0,0,0.8);
        display: none;
        border-radius: 0 0 20px 20px;
        overflow: hidden;
    }
    
    nav.main-nav.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }
    
    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    nav.main-nav a, .dropdown-toggle { 
        font-size: 16px; 
        width: 100%;
        padding: 15px 25px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    
    .dropdown { width: 100%; }
    
    .dropdown-menu { 
        position: static; 
        transform: none; 
        background: rgba(255,215,0,0.02); 
        border: none; 
        box-shadow: none; 
        padding: 0; 
        display: none; 
        border-left: 3px solid var(--primary-color); 
        margin-left: 15px;
    }
    
    .dropdown.active-dropdown .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu a {
        padding: 12px 25px;
    }
    
    .dropdown::after { display: none; }
}

/* Hero Sections */
section { 
    margin-bottom: 80px!important; 
    padding-bottom: 80px;
}
section:first-of-type { margin-top: 80px; }

.hero {
     display: flex;
    justify-content: space-between;
    align-items: center;
    background: radial-gradient(circle at 80%, rgba(255, 215, 0, 0.1) 0%, transparent 60%);
}

.hero-text { flex: 1; }
.hero-visual { flex: 0.5; display: flex; justify-content: center; align-items: center; position: relative; }

.hero h4 { color: var(--primary-color); text-transform: uppercase; letter-spacing: 5px; margin-bottom: 10px; }
.hero h1 { font-size: 70px; line-height: 1.2; margin-bottom: 25px; font-weight: 700; white-space: nowrap; }

@media (max-width: 1200px) {
    .hero h1 { font-size: 56px; white-space: normal; }
}
@media (max-width: 768px) {
    .hero { flex-direction: column; text-align: center; gap: 50px; }
    .hero h1 { font-size: 42px; }
    .hero-btns { justify-content: center; }
    .hero-contact { justify-content: center; flex-wrap: wrap; gap: 15px; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 34px; }
    .hero h4 { letter-spacing: 2px; font-size: 12px; }
}

.logo-glow-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-glow-wrap::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.2) 0%, transparent 70%);
    filter: blur(40px);
    z-index: -1;
    animation: pulse-glow 4s ease-in-out infinite;
}

.ae-logo-large { 
    max-width: 320px;
    filter: drop-shadow(0 0 15px rgba(30, 64, 175, 0.4)); 
    animation: float 6s ease-in-out infinite; 
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

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

/* Word Rotator Animation */
.word-rotator {
    display: block;
    perspective: 1000px;
    height: auto;
    min-height: 1.1em;
    overflow: hidden;
    color: var(--primary-color);
    width: 100%;
}

.word-wrapper {
    position: relative;
    display: block;
    height: auto;
    min-height: 1.2em;
    width: 100%;
    text-align: left;
}

.word {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: block !important;
    font-weight: 700;
    white-space: normal;
}

.word.active { 
    position: relative;
    top: 0; 
    opacity: 1; 
}
.word.exit { top: -100%; opacity: 0; }

/* Hero Contact Info */
.hero-contact {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    font-size: 18px;
}

.hero-contact span { color: var(--primary-color); font-weight: 600; }
.hero-contact a { color: white; text-decoration: none; transition: opacity 0.3s; }
.hero-contact a:hover { opacity: 0.8; }

/* Buttons */
.cta-button {
    display: inline-block;
    padding: 15px 40px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 5px;
    transition: var(--transition);
}

.cta-button:hover {
    background: var(--primary-color);
    color: black;
    box-shadow: 0 0 25px var(--primary-color);
    transform: translateY(-3px);
}

/* Grid & Cards */
.grid { 
    display: grid; 
    gap: 40px; 
}

.card {
    background: var(--card-bg);
    padding: 50px 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 450px;
    border: 1px solid rgba(255, 215, 0, 0.05);
}


/* Responsive Card logic */
.grid .card { grid-column: auto; }

.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 60px;
}

/* Base column logic using flex-basis */
.courses-grid-cols-2 .card { flex: 1 1 calc(50% - 40px); }
.courses-grid-cols-3 .card { flex: 1 1 calc(33.33% - 40px); }
.courses-grid-cols-4 .card { flex: 1 1 calc(25% - 40px); }

.services-grid .card { 
    grid-column: auto !important; /* Cleanup grid remnant */
    min-width: 280px; /* Ensure they don't get too small on mobile before wrap */
}

/* Special case for 3-col grid with 2 items in last row: optional, but makes it look better */
/* .courses-grid-cols-3 .card:last-child:nth-child(3n+2) { grid-column: span 2; } */

.card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.2);
}

.service-icon-wrap {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    position: relative;
}

.service-icon-wrap i {
    font-size: 40px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.card:hover .service-icon-wrap i { transform: scale(1.2); }

.service-icon-wrap::after {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1px solid rgba(255, 215, 0, 0.3);
    opacity: 0.5;
}

.card h3 { font-size: 24px; margin-bottom: 20px; color: #ffffff; font-weight: 700; }
.card p { color: var(--text-muted); font-size: 16px; margin-bottom: 30px; line-height: 1.5; flex-grow: 1; }

.service-btn {
    background: var(--primary-color);
    color: black;
    padding: 12px 35px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    transition: all 0.3s;
    text-transform: capitalize;
    font-size: 14px;
}
.service-btn:hover {
    box-shadow: 0 0 20px var(--primary-color);
    transform: scale(1.05);
}

/* About Section Styles */
.about h2 { font-size: 40px; margin-bottom: 30px; color: var(--primary-color); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.about p { font-size: 18px; color: var(--text-muted); margin-bottom: 20px; }

@media (max-width: 850px) {
    .about-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .about h2 { font-size: 32px; }
}

.about-hero { padding: 120px 0 60px; text-align: center; }
.about-hero h1 { font-size: 56px; color: var(--primary-color); }
.content-section { padding: 60px 0; }
.content-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: center; }

@media (max-width: 992px) {
    .content-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .about-hero h1 { font-size: 42px; }
}

.stats-box {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.1);
    text-align: center;
}
.stat-item h2 { font-size: 48px; color: var(--primary-color); }
.stat-item p { color: var(--text-muted); margin-bottom: 30px; }

.cert-list { list-style: none; margin-top: 30px; }
.cert-list li { margin-bottom: 15px; display: flex; align-items: center; color: var(--text-muted); }
.cert-list li::before { content: "✓"; color: var(--primary-color); margin-right: 15px; font-weight: bold; }

@media (max-width: 992px) {
    .cert-list { display: flex; flex-direction: column; align-items: center; }
}

/* Skills Section */
.skills-content { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.tech-skills h3, .prof-skills h3 { margin-bottom: 40px; font-size: 24px; text-align: center; }

.skill-bar { margin-bottom: 35px; }
.skill-bar .info { display: flex; justify-content: space-between; margin-bottom: 10px; }
.skill-bar .bar { 
    width: 100%; 
    height: 10px; 
    background: #222; 
    border-radius: 5px; 
    position: relative;
    overflow: hidden;
}
.skill-bar .bar span {
    height: 100%;
    background: var(--primary-color);
    display: block;
    border-radius: 10px;
    width: 0;
    transition: width 1.5s cubic-bezier(1, 0, 0, 1);
}

.skill-bar.active .bar span {
    width: var(--target-width);
}

/* For professional radial bars */
.radial-bar .path {
    stroke-dashoffset: 502.65;
    transition: stroke-dashoffset 2s cubic-bezier(1, 0, 0, 1);
}

/* Generic Skill Animations */
@keyframes showProgress {
    from { width: 0; }
}

.skill-bar .bar span {
    display: block;
    height: 100%;
    background: var(--primary-color);
    border-radius: 10px;
    width: 0; /* Start at 0 */
}

.reveal.active .skill-bar .bar span {
    animation: showProgress 1s cubic-bezier(1,0,0.5,1) forwards;
    width: var(--target-width);
}

.radial-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.radial-bar { position: relative; text-align: center; }
.radial-bar svg { width: 130px; height: 130px; transform: rotate(-90deg); }
.radial-bar .progress-bar { fill: none; stroke: #222; stroke-width: 10; stroke-linecap: round; }
.radial-bar .path { 
    fill: none; 
    stroke: var(--primary-color); 
    stroke-width: 10; 
    stroke-linecap: round; 
    stroke-dasharray: 502; 
    stroke-dashoffset: 502; 
    transition: stroke-dashoffset 1.5s cubic-bezier(0.1, 0, 0.2, 1);
    filter: drop-shadow(0 0 5px var(--primary-color));
}

.reveal.active .radial-bar .path { 
    stroke-dashoffset: var(--target-offset); 
}

.radial-bar .percentage {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    font-weight: 700;
}
.radial-bar .text { font-size: 14px; margin-top: 10px; color: var(--text-muted); }

/* Team Section */
.team { padding: 100px 0; text-align: center; }
.team-grid { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 40px; 
    margin-top: 60px; 
    justify-content: center;
}
.team-card {
    background: var(--card-bg);
    padding: 40px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.05);
    transition: var(--transition);
    flex: 1 1 calc(33.333% - 40px);
    max-width: 100%;
    min-width: 320px;
}
.team-card:hover { transform: translateY(-10px); border-color: var(--primary-color); }
.team-img-wrap {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto 25px;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    padding: 5px;
}
.team-img-wrap img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.team-card h3 { color: var(--primary-color); margin-bottom: 10px; font-size: 24px; }
.team-card p.role { color: var(--text-muted); font-size: 14px; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 15px; }
.team-card p.bio { font-size: 16px; color: var(--text-muted); line-height: 1.5; }

@media (max-width: 768px) {
    .team-card { flex: 1 1 100%; max-width: 400px; margin: 0 auto; }
}

/* Testimonials Section */
.testimonials {  background: #050505; overflow: hidden; position: relative; }
.testimonials h2 { text-align: center; color: var(--primary-color); margin-bottom: 60px; font-size: 40px; }

.testimonial-slider-wrap {
    display: flex;
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    justify-content: center;
}

.testimonial-slider {
    display: flex;
    gap: 30px;
    padding: 0;
    width: max-content;
}

.testimonial-slider:hover { animation-play-state: paused; }

.testimonial-card {
    background: var(--card-bg);
    border-radius: 20px;
    width: 400px;
    border: 1px solid rgba(255, 215, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
}

.testimonial-header { display: flex; align-items: center; margin-bottom: 20px; }
.testimonial-header img { 
    width: 60px; 
    height: 60px; 
    border-radius: 50%; 
    margin-right: 15px; 
    border: 2px solid var(--primary-color);
    object-fit: cover;
}
.testimonial-info h4 { color: #fff; font-size: 18px; margin: 0; }
.testimonial-info p { color: var(--primary-color); font-size: 14px; margin: 0; }
.testimonial-text { font-style: italic; color: var(--text-muted); line-height: 1.6; }

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-430px * 4)); }
}

/* Services Page Specifics */
.services-hero { padding: 120px 0 60px; text-align: center; background: radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.05) 0%, transparent 70%); }
.services-hero h1 { font-size: 64px; color: var(--primary-color); margin-bottom: 25px; }
.services-hero p { font-size: 22px; color: var(--text-muted); max-width: 800px; margin: 0 auto; }

@media (max-width: 768px) {
    .services-hero h1 { font-size: 42px; }
    .services-hero p { font-size: 18px; }
}

.service-list { padding: 80px 0; }
.service-row {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 120px;
    padding: 40px;
    background: rgba(17, 17, 17, 0.5);
    border-radius: 30px;
    border: 1px solid rgba(255, 215, 0, 0.05);
    transition: all 0.4s ease;
}
.service-row:hover {
    border-color: rgba(255, 215, 0, 0.2);
    background: rgba(20, 20, 20, 0.8);
    transform: translateY(-5px);
}
.service-row:nth-child(even) { flex-direction: row-reverse; }

.service-visual { flex: 0.8; display: flex; justify-content: center; align-items: center; }
.service-icon-box {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.1);
}
.service-icon-box i {
    font-size: 80px;
    color: var(--primary-color);
    transition: transform 0.4s ease;
}
.service-row:hover .service-icon-box i { transform: scale(1.1) rotate(5deg); }

.service-content { flex: 1.2; }
.service-content h2 { font-size: 36px; color: var(--primary-color); margin-bottom: 25px; }
.service-content p { font-size: 18px; color: var(--text-muted); line-height: 1.8; margin-bottom: 25px; }

.service-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    list-style: none;
}
.service-details li { color: #fff; font-size: 16px; display: flex; align-items: center; }
.service-details li::before {
    content: "→";
    color: var(--primary-color);
    margin-right: 15px;
    font-weight: bold;
}

@media (max-width: 992px) {
    .service-details { display: flex; flex-direction: column; align-items: center; }
    .service-details li { justify-content: center; }
}

/* Contact Page Specifics */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding: 100px 0; }
.contact-info h2 { font-size: 48px; color: var(--primary-color); margin-bottom: 30px; }
.contact-info p { font-size: 18px; color: var(--text-muted); margin-bottom: 40px; }

@media (max-width: 992px) {
    .contact-grid { grid-template-columns: 1fr; gap: 50px; text-align: center; }
    .contact-info h2 { font-size: 36px; }
}

.info-item { margin-bottom: 30px; }
.info-item h4 { color: var(--primary-color); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 5px; }
.info-item p { margin-bottom: 0; color: white; }

.contact-form { background: var(--card-bg); padding: 50px; border-radius: 20px; border: 1px solid rgba(255, 215, 0, 0.1); }
.form-group { margin-bottom: 25px; }
.form-group label { display: block; margin-bottom: 10px; color: var(--text-muted); font-size: 14px; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    background: #000;
    border: 1px solid #333;
    color: white;
    border-radius: 8px;
    font-family: inherit;
    transition: border-color 0.3s;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary-color); outline: none; }

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: black;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    transition: var(--transition);
}
.submit-btn:hover { box-shadow: 0 0 20px var(--primary-color); transform: scale(1.02); }

.contact { 
    text-align: center; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 25px;
}

.contact h2 { font-size: 48px; color: var(--primary-color); }
.contact p { font-size: 20px; color: var(--text-muted); max-width: 700px; }

/* Common Utilities */
.reveal { opacity: 0; transform: translateY(30px); transition: all 1s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

footer { padding: 40px 0; text-align: center; border-top: 1px solid rgba(255, 215, 0, 0.1); color: var(--text-muted); background: #050505; }

/* Utility Classes for Clean HTML */
.logo-link { display: flex; align-items: center; gap: 15px; text-decoration: none; }
.logo-link span { 
    font-size: 24px; 
    font-weight: 700; 
    color: var(--primary-color); 
    letter-spacing: 1px;
    text-transform: none;
}
.logo-img { max-height: 40px; mix-blend-mode: screen; }

.header-accent { color: var(--primary-color); }
.header-wa-link { color: white; text-decoration: none; }

.hero-description { font-size: 20px; color: var(--text-muted); max-width: 600px; margin-bottom: 30px; }
.hero-btns { display: flex; gap: 20px; }
.btn-primary { background: var(--primary-color) !important; color: black !important; }

.about-stats-card { background: var(--card-bg); border-radius: 20px; display: flex; justify-content: center; align-items: center; }
.stats-content { text-align: center; padding: 40px; }
.stats-number { color: var(--primary-color); font-size: 60px; }
.stats-label { margin-bottom: 20px; }
.partner-link { margin-top: 30px; padding-top: 30px; border-top: 2px solid var(--primary-color); display: flex; flex-direction: column; align-items: center; gap: 15px; text-decoration: none; transition: transform 0.3s; }
.partner-logo { max-height: 60px; filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3)); }
.partner-text { font-size: 18px; color: var(--primary-color); font-weight: 800; text-transform: uppercase; letter-spacing: 3px; text-shadow: 2px 2px 0px #000, 3px 3px 5px rgba(255, 215, 0, 0.5); }

.section-subtitle { text-align: center; letter-spacing: 5px; color: var(--text-muted); margin-bottom: 10px; font-weight: 400; }
.section-title { text-align: center; color: var(--primary-color); font-size: 40px; margin-bottom: 60px; }

.alert-card { border-color: #ff4d4d !important; }
.footer-legal { font-size: 12px; color: var(--text-muted); margin-top: 10px; }

/* Responsive Adjustments */
@media (max-width: 992px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
    .card.large, .card { grid-column: span 1; }
    .services-grid .card { flex: 1 1 calc(50% - 40px); }
    .skills-content { grid-template-columns: 1fr; gap: 50px; }
    .team-grid { grid-template-columns: 1fr 1fr; }
    .service-row, .service-row:nth-child(even) { flex-direction: column; text-align: center; gap: 40px; }
    .service-details { grid-template-columns: 1fr; text-align: left; }
}

@media (max-width: 600px) {
    .grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 32px; margin-bottom: 40px; }
    section { 
        margin-bottom: 50px; 
        padding-bottom: 50px;
    }
    .container {
        width: calc(100% - 40px) !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* Premium Service Detail Pages */
.service-blog-post {
    animation: fadeIn 1s ease;
    max-width: 1000px;
    margin: 0 auto;
}

.post-intro {
    font-size: 20px;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.post-visual img {
    width: 100%;
    border-radius: 30px;
    border: 1px solid #333;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.post-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.detail-card {
    background: rgba(255,215,0,0.02);
    padding: 35px;
    border-radius: 20px;
    border: 1px solid rgba(255,215,0,0.1);
    transition: transform 0.3s, background 0.3s;
}

.detail-card:hover {
    transform: translateY(-10px);
    background: rgba(255,215,0,0.05);
}

.detail-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.post-main-text, .about-text {
    margin-top: 50px;
    font-size: 19px;
    line-height: 1.9;
    color: #eee;
    background: rgba(255,255,255,0.01);
    padding: 40px;
    border-radius: 25px;
    border-left: 4px solid var(--primary-color);
}

/* Testimonials Section */
.testimonials { 
    background: #050505; 
    overflow: hidden; 
    position: relative; 
}
.testimonials h2 { 
    text-align: center; 
    color: var(--primary-color); 
    margin-bottom: 60px; 
    font-size: 40px; 
}

.testimonial-slider-wrap {
    display: flex;
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    justify-content: center;
    align-items: center;
}

.testimonial-slider {
    display: flex;
    padding:  0px;
    width: max-content;
}

.testimonial-slider.is-scrolling {
    animation: scroll-infinite 40s linear infinite;
}

.testimonial-slider:hover { 
    animation-play-state: paused; 
}

.testimonial-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    width: 450px;
    margin-right: 30px; /* Use margin instead of gap for seamless calculation */
    border: 1px solid rgba(255, 215, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
    transition: transform 0.3s, border-color 0.3s;
}

.testimonial-card:hover {
    border-color: rgba(255, 215, 0, 0.2);
    transform: translateY(-5px);
}

.testimonial-header { 
    display: flex; 
    align-items: center; 
    margin-bottom: 25px; 
}
.testimonial-header img { 
    width: 70px; 
    height: 70px; 
    border-radius: 50%; 
    margin-right: 20px; 
    border: 2px solid var(--primary-color);
    object-fit: cover;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}
.testimonial-info h4 { 
    color: #fff; 
    font-size: 19px; 
    margin: 0; 
    font-weight: 700;
}
.testimonial-info p { 
    color: var(--primary-color); 
    font-size: 14px; 
    margin: 5px 0 0; 
    font-weight: 500;
}
.testimonial-text { 
    font-style: italic; 
    color: var(--text-muted); 
    line-height: 1.8; 
    font-size: 17px;
}

.testimonial-initials {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 22px;
    margin-right: 20px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.testimonial-subtitle {
    display: block;
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
    opacity: 0.8;
}

/* 
   Infinite Scroll Animation 
   Note: Moves by 33.33% because we have 3 identical sets.
   Change 40s to a lower value (e.g., 20s) to make it faster.
*/
@keyframes scroll-infinite {
    0% { transform: translateX(0); }
    100% { transform: translateX(-33.333%); }
}

/* Premium Footer Legal Styles */
.footer-legal {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 15px;
    opacity: 0.8;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 30px;
    left: 30px;
    right: 30px;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 20px;
    padding: 25px 40px;
    z-index: 9999;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transition: opacity 0.5s ease;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.cookie-text h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-text p {
    color: #ccc;
    font-size: 14px;
    margin: 0;
}

.accept-btn {
    background: var(--primary-color);
    color: #000;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.accept-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--primary-color);
}

@media (max-width: 768px) {
    .cookie-content { flex-direction: column; text-align: center; gap: 20px; }
    .cookie-banner { bottom: 15px; left: 15px; right: 15px; padding: 20px; }
}
