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

:root {
    /* Vibrant Color Palette */
    --primary-purple: #8B5CF6;
    --primary-blue: #3B82F6;
    --primary-cyan: #06B6D4;
    --primary-pink: #EC4899;
    --primary-orange: #F97316;
    --accent-gold: #F59E0B;
    --accent-green: #10B981;
    
    /* Background Colors */
    --bg-dark: #0F0F23;
    --bg-surface: #1A1A2E;
    --bg-card: #16213E;
    
    /* Text Colors */
    --text-primary: #FFFFFF;
    --text-secondary: #E2E8F0;
    --text-muted: #94A3B8;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-blue) 50%, var(--primary-cyan) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-cyan) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-green) 100%);
    
    /* Shadows */
    --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.4);
    --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.3);
    --shadow-button: 0 10px 30px rgba(139, 92, 246, 0.5);
}

html, body {
    height: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    -webkit-text-size-adjust: 100%; /* Prevent text scaling on iOS */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    position: relative;
    /* iOS Safari viewport fixes */
    min-height: 100vh;
    min-height: -webkit-fill-available;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Container */
.container {
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile Safari */
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 3rem;
    position: relative;
    z-index: 100;
}

.company-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: slideInLeft 1s ease-out 0.2s forwards;
}

.logo {
    width: clamp(80px, 16vw, 200px);
    height: clamp(80px, 16vw, 200px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.6));
}

.logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 60px rgba(139, 92, 246, 0.8)) drop-shadow(0 0 100px rgba(139, 92, 246, 0.6));
}

.company-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.contact-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-button);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: slideInRight 1s ease-out 0.4s forwards;
    /* Touch optimizations */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
}

.contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.contact-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.6);
}

.contact-btn:hover::before {
    left: 100%;
}

.contact-btn:active {
    transform: translateY(-1px) scale(1.02);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 3rem;
    text-align: center;
    gap: 0.375rem;
}

.hero-text {
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.6s forwards;
}

.title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    line-height: 1.1;
    padding-bottom: 0.12rem;
}

.title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 4px;
    background: var(--gradient-secondary);
    border-radius: 2px;
    animation: underlineExpand 1s ease-out 1.5s forwards;
}

@keyframes underlineExpand {
    to { width: 60%; }
}

.subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Form Styles */
.form-container {
    width: 100%;
    max-width: 600px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.8s forwards;
}

.contact-form {
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(20px);
    padding: 1.5rem;
    border-radius: 24px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.single-form-row {
    grid-template-columns: 1fr;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    background: rgba(139, 92, 246, 0.1);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    width: 100%;
    /* Touch optimizations for mobile */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.form-group textarea {
    resize: vertical;
    min-height: 5rem;
    height: 6rem;
    max-height: 20rem;
    line-height: 1.6;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
}

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

.form-submit {
    width: 100%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1.5rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-button);
    position: relative;
    overflow: hidden;
    font-family: inherit;
    /* Touch optimizations */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
}

.form-submit:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 50px rgba(139, 92, 246, 0.6);
}

.form-submit:active {
    transform: translateY(-1px) scale(1.01);
}

.form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loader {
    display: none;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

.form-submit.loading .btn-text {
    opacity: 0.7;
}

.form-submit.loading .btn-loader {
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success Message */
.success-message {
    background: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid rgba(16, 185, 129, 0.5);
    text-align: center;
    animation: successSlideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.2);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    animation: successPulse 1s ease-out;
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.5);
}

.success-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

@keyframes successPulse {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes successSlideIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.success-message h2 {
    /* font-family: 'Playfair Display', serif; */
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.success-message p {
    font-size: 1.3rem;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    text-align: left;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    backdrop-filter: blur(10px);
    opacity: 0;
    animation: fadeIn 1s ease-out 1s forwards;
    gap: 1rem;
}

.footer-left p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.footer-right {
    display: flex;
    gap: 1.2rem;
}

.footer-link {
    background: none;
    border: none;
    color: var(--primary-purple);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    font-family: inherit;
    outline: none;
    position: relative;
}
.footer-link:hover, .footer-link:focus {
    background: var(--gradient-primary);
    color: #fff;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 20000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background: rgba(15, 15, 35, 0.75);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}
.modal[open], .modal.active {
    display: flex !important;
}
.modal-content {
    background: var(--bg-surface);
    color: var(--text-primary);
    margin: auto;
    padding: 2.5rem 2rem 2rem 2rem;
    border-radius: 20px;
    max-width: 480px;
    width: 90vw;
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.25);
    position: relative;
    animation: fadeInUp 0.4s;
}
.modal-content h2 {
    font-size: 1.7rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.modal-body {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    max-height: 50vh;
    overflow-y: auto;
}
.modal-close {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    background: none;
    border: none;
    color: var(--primary-purple);
    font-size: 2rem;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 2;
    line-height: 1;
}
.modal-close:hover, .modal-close:focus {
    color: var(--primary-blue);
}
.modal-content-large {
    max-width: 800px;
    width: 96vw;
    padding: 2.5rem 2.5rem 2rem 2.5rem;
    font-size: 1.08rem;
    line-height: 1.7;
}
@media (max-width: 900px) {
    .modal-content_large {
        max-width: 98vw;
        padding: 1.2rem 0.7rem 1.2rem 0.7rem;
    }
}
.modal-content-large h2 {
    font-size: 2rem;
    margin-bottom: 1.2rem;
}
.modal-content-large h3 {
    font-size: 1.18rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.modal-content-large ul {
    margin: 0.5rem 0 1.2rem 1.2rem;
    padding-left: 1.2rem;
    list-style: disc;
}
.modal-content-large p {
    margin-bottom: 0.7rem;
}
@media (max-width: 600px) {
    .footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.7rem;
        padding: 1.2rem 1rem;
    }
    .footer-right {
        align-self: flex-end;
    }
    .modal-content {
        padding: 1.2rem 0.7rem 1.2rem 0.7rem;
        max-width: 98vw;
    }
}

/* Legal Modal Styles */
.legal-scroll {
    max-width: 1000px;
    width: 98vw;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem 2.5rem 2rem 2.5rem;
    font-size: 1.05rem;
    line-height: 1.7;
    background: var(--bg-surface);
}
.legal-body {
    white-space: normal;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    color: var(--text-secondary);
    padding-bottom: 2rem;
    font-size: 1.08rem;
    line-height: 1.8;
    letter-spacing: 0.01em;
}
.legal-body h1, .legal-body h2, .legal-body h3, .legal-body h4 {
    color: var(--primary-purple);
    margin-top: 2.2rem;
    margin-bottom: 1.1rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.01em;
}
.legal-body ol, .legal-body ul {
    margin-left: 2.2rem;
    margin-bottom: 1.3rem;
    padding-left: 1.2rem;
}
.legal-body ol {
    list-style-type: decimal;
}
.legal-body ol ol {
    list-style-type: lower-alpha;
    margin-top: 0.2em;
    margin-bottom: 0.2em;
}
.legal-body ol ol ol {
    list-style-type: lower-roman;
}
.legal-body li {
    margin-bottom: 0.4em;
    padding-left: 0.1em;
}
.legal-body p, .legal-body li {
    font-size: 1.08rem;
    line-height: 1.8;
    letter-spacing: 0.01em;
}
.legal-body strong {
    font-weight: 600;
    color: var(--primary-blue);
}
.legal-body .legal-section {
    margin-bottom: 1.5em;
}
.legal-toc {
    margin-bottom: 2em;
    font-size: 1.09rem;
    color: var(--primary-purple);
    font-weight: 600;
}
.legal-toc li {
    margin-bottom: 0.2em;
    color: var(--primary-purple);
}
.legal-body a {
    color: var(--primary-blue);
    text-decoration: underline;
    word-break: break-all;
}
.legal-body {
    background: none;
}
.legal-body h3 {
    margin-top: 2.2rem;
    margin-bottom: 0.7rem;
    font-size: 1.18rem;
    font-weight: 700;
}
.legal-body h2 {
    font-size: 1.35rem;
    margin-bottom: 1.2rem;
}
.legal-body h1 {
    font-size: 1.7rem;
    margin-bottom: 1.3rem;
}
.legal-body .legal-section ol[type="a"] > li {
    list-style-type: lower-alpha;
}
.legal-body .legal-section ol[type="a"] {
    margin-left: 2.5rem;
}
.legal-body .legal-section ol[type="a"] > li > ol {
    margin-left: 2.2rem;
}
.legal-body .legal-section ol[type="a"] > li > ol > li {
    list-style-type: decimal;
}
.legal-body .legal-section ol[type="a"] > li > ol[type="a"] > li {
    list-style-type: lower-alpha;
}
.legal-body .legal-section ol[type="a"] > li > ol[type="i"] > li {
    list-style-type: lower-roman;
}
.legal-body .legal-section ol > li > ol {
    margin-top: 0.2em;
    margin-bottom: 0.2em;
}
.legal-body .legal-section ol > li {
    margin-bottom: 0.5em;
}
.legal-body .legal-section {
    margin-bottom: 2em;
}
.legal-body .legal-section p {
    margin-bottom: 0.5em;
}
.legal-body .legal-section strong {
    color: var(--primary-blue);
    font-weight: 600;
}
.legal-body .legal-section ol > li > strong {
    color: var(--primary-blue);
    font-weight: 600;
}
.legal-body .legal-section ol > li > ol > li > strong {
    color: var(--primary-purple);
    font-weight: 600;
}
.legal-body .legal-section ol > li > ol > li {
    margin-bottom: 0.3em;
}
.legal-body .legal-section ol > li > ol > li > ol > li {
    margin-bottom: 0.2em;
}
.legal-body .legal-section ol > li > ol > li > ol {
    margin-left: 2.2rem;
}
.legal-body .legal-section ol > li > ol {
    margin-left: 2.2rem;
}
.legal-body .legal-section ol > li > ol > li > ol {
    margin-left: 2.2rem;
}
.legal-body .legal-section ol > li > ol > li > ol > li {
    list-style-type: lower-roman;
}
.legal-body .legal-section ol > li > ol > li > ol[type="a"] > li {
    list-style-type: lower-alpha;
}
.legal-body .legal-section ol > li > ol > li > ol[type="i"] > li {
    list-style-type: lower-roman;
}
.legal-body .legal-section ol > li > ol > li > ol > li > ol {
    margin-left: 2.2rem;
}
.legal-body .legal-section ol > li > ol > li > ol > li > ol > li {
    list-style-type: decimal;
}
.legal-body .legal-section ol > li > ol > li > ol > li > ol[type="a"] > li {
    list-style-type: lower-alpha;
}
.legal-body .legal-section ol > li > ol > li > ol > li > ol[type="i"] > li {
    list-style-type: lower-roman;
}
/* --- END LEGAL MODALS PATCH --- */

/* --- Custom Stylish Scrollbar for Legal Modals --- */
.legal-scroll::-webkit-scrollbar {
    width: 12px;
    background: var(--bg-surface);
    border-radius: 8px;
}
.legal-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-blue) 100%);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(139,92,246,0.15);
    border: 2px solid var(--bg-surface);
}
.legal-scroll::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
}
.legal-scroll::-webkit-scrollbar-track {
    background: var(--bg-card);
    border-radius: 8px;
}
.legal-scroll {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-purple) var(--bg-card);
}
/* For Firefox */
.legal-scroll {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-purple) var(--bg-card);
}

/* Background Elements */
.bg-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    animation: float 8s ease-in-out infinite;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-purple) 0%, transparent 70%);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-blue) 0%, transparent 70%);
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--primary-cyan) 0%, transparent 70%);
    bottom: 20%;
    left: 50%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    opacity: 0.1;
    animation: floatShapes 12s linear infinite;
}

.shape-1 {
    width: 20px;
    height: 20px;
    background: var(--primary-pink);
    border-radius: 50%;
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.shape-2 {
    width: 15px;
    height: 15px;
    background: var(--primary-orange);
    transform: rotate(45deg);
    top: 70%;
    left: 80%;
    animation-delay: 3s;
}

.shape-3 {
    width: 25px;
    height: 25px;
    background: var(--accent-gold);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    top: 40%;
    left: 90%;
    animation-delay: 6s;
}

.shape-4 {
    width: 18px;
    height: 18px;
    background: var(--accent-green);
    border-radius: 50%;
    top: 80%;
    left: 10%;
    animation-delay: 9s;
}

@keyframes floatShapes {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-100vh) rotate(360deg); }
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 1.5rem 2rem;
        flex-direction: column;
        gap: 1rem;
    }

    .logo-text {
        font-size: 1.3rem;
    }

    .contact-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .main-content {
        padding: 0.5rem 2rem;
        gap: 2rem;
    }

    .title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .subtitle {
        font-size: 1rem;
    }

    .contact-form {
        padding: 2.5rem 2.5rem 1.5rem 2.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 1rem 1.2rem;
        font-size: 0.9rem;
    }

    .form-group textarea {
        min-height: 5rem;
        height: 6rem;
        max-height: 20rem;
    }

    .form-submit {
        padding: 1.2rem 1.5rem;
        font-size: 1rem;
    }

    .success-message {
        padding: 2rem;
    }

    .success-message h2 {
        font-size: 2rem;
    }

    .success-message p {
        font-size: 1.1rem;
    }

    .footer {
        padding: 1.5rem 2rem;
    }

    .orb-1, .orb-2, .orb-3 {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1rem;
    }

    .main-content {
        padding: 0.5rem 1rem;
        gap: 1.5rem;
    }

    .hero-logo {
        margin-top: -4rem;
        margin-bottom: -8rem;
    }

    .hero-logo .logo {
        width: clamp(200px, 60vw, 350px);
        height: clamp(200px, 60vw, 350px);
    }

    .contact-form {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.9rem 1rem;
        border-radius: 12px;
    }

    .form-group textarea {
        min-height: 5rem;
        height: 6rem;
        max-height: 20rem;
    }

    .form-submit {
        padding: 1rem 1.2rem;
        border-radius: 40px;
    }

    .success-message {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .success-icon {
        width: 60px;
        height: 60px;
    }

    .success-icon svg {
        width: 30px;
        height: 30px;
    }

    .footer {
        padding: 1rem;
    }

    .footer p {
        font-size: 0.8rem;
    }
}

/* iPhone-specific styles */
@media (max-width: 390px) {
    .container {
        min-height: 100vh;
        min-height: -webkit-fill-available; /* iOS Safari fallback */
    }

    .header {
        padding: 0.8rem;
        flex-direction: column;
        gap: 0.8rem;
    }

    .company-text {
        font-size: 1.2rem;
    }

    .contact-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }

    .main-content {
        padding: 0.5rem 0.8rem;
        gap: 1rem;
    }

    .hero-logo {
        margin-top: -2rem;
        margin-bottom: -6rem;
    }

    .hero-logo .logo {
        width: clamp(180px, 65vw, 280px);
        height: clamp(180px, 65vw, 280px);
    }

    .title {
        font-size: clamp(1.8rem, 9vw, 2.5rem);
        margin-bottom: 0.8rem;
    }

    .subtitle {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .contact-form {
        padding: 1.2rem;
        margin-top: 1rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .form-submit {
        padding: 0.9rem 1rem;
        font-size: 0.9rem;
    }

    .footer {
        padding: 0.8rem;
    }

    .footer p {
        font-size: 0.75rem;
    }

    /* Reduce background elements on very small screens */
    .orb-1, .orb-2, .orb-3 {
        width: 150px;
        height: 150px;
        opacity: 0.3;
    }

    .floating-shapes .shape {
        opacity: 0.2;
    }
}

@media (min-width: 1200px) {
    .header {
        padding: 2.5rem 4rem;
    }

    .main-content {
        padding: 0.5rem 4rem;
    }

    .footer {
        padding: 2rem 4rem;
    }
}

/* Hero Logo */
.hero-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -6rem;
    margin-bottom: -8rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.4s forwards;
    position: relative;
}

.hero-logo .logo {
    width: clamp(280px, 55vw, 700px);
    height: clamp(280px, 55vw, 700px);
    filter: drop-shadow(0 0 40px rgba(139, 92, 246, 0.7)) drop-shadow(0 0 80px rgba(139, 92, 246, 0.5));
    animation: logoGlow 3s ease-in-out infinite alternate;
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-logo .logo:hover {
    filter: drop-shadow(0 0 80px rgba(139, 92, 246, 0.9)) drop-shadow(0 0 160px rgba(139, 92, 246, 0.7));
    transform: scale(1.07);
}

/* Big Aura Effect */
.hero-logo::before {
    content: '';
    position: absolute;
    top: calc(50% - 1rem);
    left: 50.3%;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, rgba(139, 92, 246, 0.1) 40%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    pointer-events: none;
}

.hero-logo:hover::before {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    animation: auraGlow 2s ease-in-out infinite alternate;
}

@keyframes auraGlow {
    0% {
        box-shadow: 0 0 100px rgba(139, 92, 246, 0.4), 0 0 200px rgba(139, 92, 246, 0.2);
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        box-shadow: 0 0 150px rgba(139, 92, 246, 0.6), 0 0 300px rgba(139, 92, 246, 0.3);
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes logoGlow {
    from {
        filter: drop-shadow(0 0 40px rgba(139, 92, 246, 0.6)) drop-shadow(0 0 80px rgba(139, 92, 246, 0.4));
    }
    to {
        filter: drop-shadow(0 0 60px rgba(139, 92, 246, 0.9)) drop-shadow(0 0 120px rgba(139, 92, 246, 0.7));
    }
}

@media (prefers-reduced-motion: reduce), (max-width: 768px) {

    /* 1 ▸ Hide (don’t just ‘un-blur’) the giant orb layers */
    .bg-elements,
    .gradient-orb,
    .floating-shapes {
        display: none !important;
    }

    /* 2 ▸ Turn off the animated glow + heavy drop-shadows */
    .hero-logo .logo,
    .logo:hover {
        filter: none !important;
        animation: none !important;
    }

    /* 3 ▸ Replace backdrop-blur with a cheap translucent fill */
    .contact-form,
    .success-message {
        -webkit-backdrop-filter: none !important; /* Safari */
        backdrop-filter: none !important;
        background: rgba(26, 26, 46, 0.90);       /* keeps the frosted-glass vibe */
    }
}