/* =============================================
   AutoGate Pro - Main Styles
   Premium Automatic Doors Website
   ============================================= */

/* CSS Variables - Design System */
:root {
    /* Colors */
    --primary: #0a0a0f;
    --primary-light: #1a1a2e;
    --secondary: #16213e;
    --accent: #0f3460;
    --gold: #d4a853;
    --gold-light: #e8c47c;
    --gold-dark: #b8943f;
    --silver: #a8b2c1;
    --white: #f8f9fa;
    --white-soft: #e9ecef;
    --gray: #6c757d;
    --gray-light: #8a94a6;
    --dark: #050508;

    /* Gradients */
    --gradient-gold: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
    --gradient-dark: linear-gradient(180deg, var(--primary) 0%, var(--dark) 100%);
    --gradient-card: linear-gradient(145deg, rgba(26, 26, 46, 0.8) 0%, rgba(10, 10, 15, 0.9) 100%);

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --section-padding: 120px;
    --container-max: 1200px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
    --shadow-gold: 0 4px 24px rgba(212, 168, 83, 0.3);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background: var(--primary);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection */
::selection {
    background: var(--gold);
    color: var(--primary);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* =============================================
   Typography
   ============================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

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

/* =============================================
   Navigation
   ============================================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 0;
    border-bottom: 1px solid rgba(212, 168, 83, 0.1);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--white);
}

.logo-icon {
    font-size: 28px;
    color: var(--gold);
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.logo-accent {
    color: var(--gold);
}

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

.nav-link {
    color: var(--white-soft);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width var(--transition-normal);
}

.nav-link:hover {
    color: var(--white);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.nav-cta {
    background: var(--gradient-gold);
    color: var(--primary);
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.nav-link.nav-cta::after {
    display: none;
}

.nav-link.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all var(--transition-fast);
}

/* =============================================
   Hero Section
   ============================================= */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(15, 52, 96, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(212, 168, 83, 0.1) 0%, transparent 40%),
        var(--gradient-dark);
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(212, 168, 83, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 168, 83, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(10, 10, 15, 0.5) 100%);
}

.hero-content {
    position: relative;
    text-align: center;
    padding: 0 24px;
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(212, 168, 83, 0.1);
    border: 1px solid rgba(212, 168, 83, 0.3);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gold);
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--gray-light);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all var(--transition-normal);
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

.btn-primary .btn-arrow {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-fast);
}

.btn-primary:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 48px;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
}

.stat-number::after {
    content: '+';
}

.stat-label {
    font-size: 14px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--gold);
    border-radius: 2px;
    animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {

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

    50% {
        opacity: 0.3;
        transform: translateY(8px);
    }
}

/* =============================================
   Section Styles
   ============================================= */

section {
    padding: var(--section-padding) 0;
    position: relative;
}

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

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(212, 168, 83, 0.1);
    border: 1px solid rgba(212, 168, 83, 0.2);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray-light);
    max-width: 600px;
    margin: 0 auto;
}

/* =============================================
   Services Section
   ============================================= */

.services {
    background: var(--primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--gradient-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-gold);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 168, 83, 0.2);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 168, 83, 0.1);
    border-radius: var(--radius-md);
}

.service-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--gold);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--gray-light);
    font-size: 15px;
    margin-bottom: 24px;
    line-height: 1.6;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: gap var(--transition-fast);
}

.service-link svg {
    width: 16px;
    height: 16px;
}

.service-link:hover {
    gap: 10px;
}

/* =============================================
   Benefits Section
   ============================================= */

.benefits {
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 50%, var(--primary) 100%);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.benefit-item {
    display: flex;
    gap: 24px;
    padding: 32px;
    background: rgba(22, 33, 62, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.benefit-item:hover {
    background: rgba(22, 33, 62, 0.5);
    border-color: rgba(212, 168, 83, 0.2);
    transform: translateX(8px);
}

.benefit-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 168, 83, 0.1);
    border-radius: var(--radius-md);
}

.benefit-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--gold);
}

.benefit-content h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.benefit-content p {
    color: var(--gray-light);
    font-size: 15px;
    line-height: 1.6;
}

/* =============================================
   Gallery Section
   ============================================= */

.gallery {
    background: var(--primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item.large {
    grid-column: span 2;
}

.gallery-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-slow);
}

.gallery-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--silver);
}

.gallery-placeholder svg {
    width: 64px;
    height: 64px;
    opacity: 0.5;
}

.gallery-placeholder span {
    font-size: 14px;
    opacity: 0.7;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 15, 0.9) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-category {
    font-size: 12px;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.gallery-overlay h4 {
    font-size: 18px;
}

/* =============================================
   Process Section
   ============================================= */

.process {
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 100%);
}

.timeline {
    display: flex;
    justify-content: center;
    gap: 60px;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--accent) 20%, var(--accent) 80%, transparent 100%);
}

.timeline-item {
    flex: 1;
    max-width: 320px;
    text-align: center;
    position: relative;
}

.timeline-number {
    font-size: 64px;
    font-weight: 800;
    color: rgba(212, 168, 83, 0.1);
    line-height: 1;
    margin-bottom: -20px;
}

.timeline-content {
    background: var(--gradient-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: all var(--transition-normal);
}

.timeline-item:hover .timeline-content {
    transform: translateY(-8px);
    border-color: rgba(212, 168, 83, 0.2);
    box-shadow: var(--shadow-lg);
}

.timeline-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 168, 83, 0.1);
    border-radius: 50%;
}

.timeline-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--gold);
}

.timeline-content h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.timeline-content p {
    color: var(--gray-light);
    font-size: 15px;
    line-height: 1.6;
}

/* =============================================
   Testimonials Section
   ============================================= */

.testimonials {
    background: var(--primary);
    overflow: hidden;
}

.testimonials-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonials-slider {
    display: flex;
    transition: transform var(--transition-slow);
}

.testimonial-card {
    flex: 0 0 100%;
    padding: 48px;
    background: var(--gradient-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    text-align: center;
    opacity: 0;
    transform: scale(0.95);
    transition: all var(--transition-normal);
    display: none;
}

.testimonial-card.active {
    opacity: 1;
    transform: scale(1);
    display: block;
}

.testimonial-quote {
    font-size: 80px;
    font-family: Georgia, serif;
    color: var(--gold);
    opacity: 0.3;
    line-height: 0.5;
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: 20px;
    line-height: 1.7;
    color: var(--white-soft);
    margin-bottom: 32px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.author-avatar {
    width: 56px;
    height: 56px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary);
    font-size: 18px;
}

.author-info {
    text-align: left;
}

.author-info h4 {
    font-size: 16px;
    margin-bottom: 2px;
}

.author-info span {
    font-size: 14px;
    color: var(--gray);
}

.testimonial-stars {
    color: var(--gold);
    font-size: 20px;
    letter-spacing: 4px;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.dot.active,
.dot:hover {
    background: var(--gold);
}

/* =============================================
   Contact Section
   ============================================= */

.contact {
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--primary) 100%);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info .section-tag {
    margin-bottom: 16px;
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: 16px;
}

.contact-info>p {
    color: var(--gray-light);
    margin-bottom: 40px;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 168, 83, 0.1);
    border-radius: var(--radius-sm);
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--gold);
}

.contact-item strong {
    display: block;
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 2px;
    font-weight: 400;
}

.contact-item span {
    font-size: 16px;
    font-weight: 500;
}

/* Contact Form */
.contact-form {
    background: var(--gradient-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    padding: 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    position: relative;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-family: var(--font-main);
    font-size: 16px;
    transition: all var(--transition-fast);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.form-group label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 16px;
    pointer-events: none;
    transition: all var(--transition-fast);
}

.form-group textarea+label {
    top: 20px;
    transform: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    background: rgba(212, 168, 83, 0.05);
}

.form-group input:focus+label,
.form-group input:not(:placeholder-shown)+label,
.form-group select:focus+label,
.form-group select:valid+label,
.form-group textarea:focus+label,
.form-group textarea:not(:placeholder-shown)+label {
    top: 0;
    left: 16px;
    font-size: 12px;
    background: var(--primary-light);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--gold);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: transparent;
}

.form-error {
    position: absolute;
    bottom: -20px;
    left: 0;
    font-size: 12px;
    color: #ff6b6b;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.form-group.error .form-error {
    opacity: 1;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #ff6b6b;
}

.btn-submit {
    grid-column: span 2;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.btn-submit .btn-text,
.btn-submit .btn-loading,
.btn-submit .btn-success {
    transition: all var(--transition-fast);
}

.btn-submit .btn-loading,
.btn-submit .btn-success {
    position: absolute;
    opacity: 0;
}

.btn-submit.loading .btn-text {
    opacity: 0;
}

.btn-submit.loading .btn-loading {
    opacity: 1;
}

.btn-submit.success .btn-text,
.btn-submit.success .btn-loading {
    opacity: 0;
}

.btn-submit.success .btn-success {
    opacity: 1;
}

.btn-submit.success {
    background: #2ecc71;
}

.spinner {
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* =============================================
   Footer
   ============================================= */

.footer {
    background: var(--dark);
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--gray);
    margin-top: 16px;
    line-height: 1.7;
    max-width: 300px;
}

.footer-links h4 {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 15px;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-bottom p {
    color: var(--gray);
    font-size: 14px;
}

.developer-credit-footer {
    margin-top: 8px;
    color: var(--gray-light);
}

.developer-credit-footer strong {
    color: var(--gold);
}

/* =============================================
   Gallery Images
   ============================================= */

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

/* =============================================
   Developer Badge (Fixed Position)
   ============================================= */

.developer-badge {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 168, 83, 0.3);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    z-index: 999;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.developer-badge:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
}

.developer-badge span {
    font-size: 10px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.developer-badge strong {
    font-size: 14px;
    color: var(--gold);
    font-weight: 600;
}

/* =============================================
   Service Modals
   ============================================= */

.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background: var(--gradient-card);
    border: 1px solid rgba(212, 168, 83, 0.2);
    border-radius: var(--radius-xl);
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform var(--transition-normal);
}

.modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 10;
}

.modal-close svg {
    width: 20px;
    height: 20px;
    stroke: var(--gray-light);
    transition: stroke var(--transition-fast);
}

.modal-close:hover {
    background: rgba(212, 168, 83, 0.2);
    border-color: var(--gold);
}

.modal-close:hover svg {
    stroke: var(--gold);
}

.modal-header {
    padding: 40px 40px 24px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 168, 83, 0.1);
    border-radius: var(--radius-lg);
}

.modal-icon svg {
    width: 48px;
    height: 48px;
    stroke: var(--gold);
}

.modal-header h2 {
    font-size: 28px;
    margin: 0;
}

.modal-body {
    padding: 32px 40px;
}

.modal-intro {
    font-size: 16px;
    color: var(--gray-light);
    line-height: 1.7;
    margin-bottom: 32px;
    text-align: center;
}

.modal-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.modal-feature {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.modal-feature:hover {
    background: rgba(212, 168, 83, 0.05);
    border-color: rgba(212, 168, 83, 0.2);
}

.modal-feature .feature-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
}

.modal-feature .feature-content h4 {
    font-size: 16px;
    margin-bottom: 6px;
    color: var(--white);
}

.modal-feature .feature-content p {
    font-size: 14px;
    color: var(--gray-light);
    line-height: 1.5;
    margin: 0;
}

.modal-specs {
    background: rgba(15, 52, 96, 0.2);
    border: 1px solid rgba(15, 52, 96, 0.3);
    border-radius: var(--radius-md);
    padding: 24px;
}

.modal-specs h4 {
    font-size: 16px;
    margin-bottom: 16px;
    color: var(--gold);
}

.modal-specs ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.modal-specs li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
    color: var(--gray-light);
}

.modal-specs li:last-child {
    border-bottom: none;
}

.modal-specs li strong {
    color: var(--white);
}

.modal-footer {
    padding: 24px 40px 40px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-footer .btn {
    min-width: 200px;
}

/* Modal Service Link Button Styling */
button.service-link {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* Modal Scrollbar */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

/* Body when modal is open */
body.modal-open {
    overflow: hidden;
}