/* Build trigger: 2025-01-27 - Purple cursor implementation update */
:root {
    --primary-color: #2d1b69;
    --secondary-color: #1a1033;
    --accent-color: #5C0099; /* Updated to match BeyondRealizm logo purple */
    --logo-purple: #5C0099; /* BeyondRealizm logo purple */
    --text-color: #ffffff;
    --bg-color: #0a0a0a;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --transition-speed: 0.3s;
    --vh: 1vh;
    --gradient-start: #2d1b69;
    --gradient-end: #1a1033;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --card-bg: rgba(255, 255, 255, 0.1);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: transparent;
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
    overflow-x: hidden;
    position: relative;
    z-index: 0;
}

/* Background Container for Responsive Logo */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(135deg, var(--bg-color), var(--secondary-color));
}

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: -1;
}

.content-wrapper {
    position: relative;
    z-index: 1;
    background: transparent;
    background-attachment: scroll;
    min-height: 100vh;
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: none;
    backdrop-filter: none;
    padding: 1rem 0;
    transition: transform var(--transition-speed);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.nav-left {
    display: none;
}

.nav-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-grow: 1;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    transition: color var(--transition-speed);
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
}

.logo:hover {
    color: var(--accent-color);
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
    transition: transform var(--transition-speed) ease-out, opacity var(--transition-speed) ease-out;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-speed);
    position: relative;
    padding: 0.5rem 0;
    cursor: pointer;
}

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

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

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

.contact-nav-link {
    text-decoration: none;
    color: var(--accent-color);
    cursor: pointer;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-color);
    margin: 5px 0;
    transition: var(--transition-speed);
}

/* Social Links in Nav */
.nav-right .social-links {
    position: static;
    display: flex;
    gap: 0.75rem;
    margin-left: 2rem;
}

.nav-right .social-icon {
    color: var(--text-color);
    font-size: 1.5rem;
    text-decoration: none;
    transition: color var(--transition-speed), transform var(--transition-speed);
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    backdrop-filter: none;
    cursor: pointer;
    position: relative;
    z-index: 1001;
    padding: 0;
}

.nav-right .social-icon:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 2rem 2rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
    z-index: 1;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.cta-button {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform var(--transition-speed), background-color var(--transition-speed);
    cursor: pointer;
}

.cta-button.primary {
    background: var(--accent-color);
    color: var(--text-color);
    cursor: pointer;
}

.cta-button.secondary {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--text-color);
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-2px);
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

/* About Section */
.about-section {
    padding: 6rem 2rem;
    position: relative;
    z-index: 1;
    background-color: rgba(26, 16, 51, 0.8);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

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

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    cursor: default;
}

.stat-label {
    color: var(--text-secondary);
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px var(--shadow-color);
}

/* Services Section */
.services-section {
    padding: 6rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
    background-color: rgba(26, 16, 51, 0.8);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: transform var(--transition-speed);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    cursor: default;
}

.service-card h3 {
    margin-bottom: 1rem;
}

/* Portfolio Section */
.portfolio-section {
    padding: 6rem 2rem;
    position: relative;
    z-index: 1;
    background-color: rgba(26, 16, 51, 0.8);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 3/2;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(45, 27, 105, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity var(--transition-speed);
}

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

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay h3 {
    margin-bottom: 0.5rem;
}

.portfolio-overlay p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.portfolio-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-speed);
    cursor: pointer;
}

.portfolio-link:hover {
    color: var(--text-color);
}

/* Contact Section */
.contact-section {
    padding: 6rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
    background-color: rgba(26, 16, 51, 0.8);
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: none;
    border-radius: 10px;
    background: var(--card-bg);
    color: var(--text-color);
    font-family: inherit;
    width: 100%;
    font-size: 16px; /* Prevents iOS zoom */
    -webkit-appearance: none; /* Removes default styling */
    appearance: none;
    caret-color: var(--logo-purple);
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid var(--logo-purple);
    outline-offset: 2px;
    caret-color: var(--logo-purple);
}

.submit-button {
    background: var(--accent-color);
    color: var(--text-color);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--transition-speed);
    width: auto;
    display: inline-block;
    font-size: 16px;
    -webkit-appearance: none; /* Removes default styling */
    appearance: none;
}

.submit-button:hover {
    transform: translateY(-2px);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    cursor: default;
}

/* Footer */
.main-footer {
    background: none;
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.footer-brand h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color var(--transition-speed);
    cursor: pointer;
}

.footer-column a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--text-secondary);
}

/* Social Links (Desktop & Mobile Top Right) */
.social-links {
    display: flex;
    gap: 0.75rem;
    margin-left: 2rem;
    align-items: center;
}

.social-icon {
    color: var(--text-color);
    font-size: 1.5rem;
    text-decoration: none;
    transition: color var(--transition-speed), transform var(--transition-speed);
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    backdrop-filter: none;
    cursor: pointer;
    position: relative;
    z-index: 1001;
    padding: 0;
}

.social-icon i.fab,
.social-icon i.fas {
    color: var(--text-color);
}

.social-icon:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* Animations */
.animate-text {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-content {
        padding: 0 1.5rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .hero-image {
        width: 40%;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav-content {
        position: relative;
        z-index: 1001;
        padding: 1rem 2rem;
        background: rgba(26, 16, 51, 0.95);
        backdrop-filter: blur(10px);
    }

    .nav-left {
        display: flex;
        align-items: center;
        position: absolute;
        left: 2rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1003;
    }

    .nav-right {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        position: relative;
        z-index: 1002;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: calc(var(--vh, 1vh) * 100);
        background: linear-gradient(135deg, rgba(26, 16, 51, 0.98), rgba(45, 27, 105, 0.98));
        backdrop-filter: blur(20px);
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        padding: 2rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-links.active {
        transform: translateX(0);
        width: 100%;
        align-items: center;
        padding: 4rem 2rem 2rem;
        height: 100vh;
        height: calc(var(--vh, 1vh) * 100);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 0;
    }
    
    .nav-links .nav-link {
        width: 100%;
        max-width: 300px;
        padding: 20px 0;
        text-align: center;
        font-size: 1.2rem;
        font-weight: 500;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
        color: white;
        text-decoration: none;
        display: block;
        margin: 0;
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links .nav-link:last-child {
        border-bottom: none;
    }

    .nav-links .nav-link:hover,
    .nav-links .nav-link:focus {
        color: var(--accent-color);
        background: rgba(255, 255, 255, 0.05);
        transform: translateX(10px);
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 30px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1003;
        position: relative;
        transition: all 0.3s ease;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .menu-toggle:focus {
        outline: 2px solid var(--accent-color);
        outline-offset: 2px;
    }

    .menu-toggle span {
        width: 100%;
        height: 3px;
        background: white;
        border-radius: 2px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        transform-origin: center;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Mobile social links in menu */
    .mobile-social-links {
        display: flex;
        justify-content: center;
        gap: 1.5rem;
        margin-top: 2rem;
        padding-top: 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        max-width: 300px;
    }

    .mobile-social-links .social-icon {
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        transition: all 0.3s ease;
    }

    .mobile-social-links .social-icon:hover {
        transform: scale(1.1);
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }

    .hero-section {
        padding-top: 5rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .about-grid,
    .services-grid,
    .portfolio-grid,
    .contact-grid {
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .hero-image {
        display: none;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .cta-buttons {
        justify-content: center;
    }

    .social-links {
        display: flex;
        gap: 0.75rem;
        margin-left: 0;
        position: static;
        z-index: 1002;
    }

    .social-icon {
        font-size: 1.2rem;
        color: var(--text-color);
    }
}

/* Desktop styles for nav-links and social links */
@media (min-width: 769px) {
    .nav-links {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        flex-direction: row;
        gap: 2rem;
        padding: 0;
        justify-content: center;
    }

    .nav-links.active {
        width: auto;
        height: auto;
        position: static;
        padding-top: 0;
        box-shadow: none;
        justify-content: center;
        padding-left: 0;
        gap: 2rem;
    }

    .mobile-social-links {
        display: none;
    }

    .nav-right .social-links {
        display: flex;
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .nav-link:hover::after {
        width: 0;
    }

    .service-card:hover {
        transform: none;
    }

    .portfolio-item:hover img {
        transform: none;
    }

    .submit-button:hover {
        transform: none;
    }
}

/* Enhanced Landscape Orientation Support */
@media (max-width: 900px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        padding: 2rem 2rem 1rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .cta-button {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .nav-links.active {
        padding: 3rem 2rem 1rem;
        justify-content: flex-start;
        align-items: center;
        gap: 0;
        height: 100vh;
        overflow-y: auto;
    }

    .nav-links .nav-link {
        padding: 12px 0;
        font-size: 1.1rem;
        margin: 0.3rem 0;
    }

    .mobile-social-links {
        margin-top: 1rem;
        padding-top: 1rem;
        gap: 1rem;
    }

    .mobile-social-links .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .section-header {
        padding: 1rem 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .services-grid,
    .portfolio-grid {
        gap: 1.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-group textarea {
        min-height: 100px;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 16px;
    }

    /* Ensure menu doesn't cover content in landscape */
    .nav-links.active {
        padding-top: 60px;
    }
}

/* Very Small Devices - Enhanced */
@media (max-width: 380px) {
    .nav-content {
        padding: 0.8rem 1.5rem;
    }

    .nav-left {
        left: 1.5rem;
    }

    .nav-right {
        padding-right: 1.5rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .cta-button {
        width: 100%;
        padding: 15px;
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    .services-grid,
    .portfolio-grid {
        gap: 1rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px;
        padding: 15px;
    }

    .submit-button {
        padding: 15px;
        font-size: 1rem;
    }

    .menu-toggle {
        width: 28px;
        height: 28px;
    }

    .mobile-social-links .social-icon {
        width: 45px;
        height: 45px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .nav-link:hover::after {
        transform: none;
    }

    .service-card:hover {
        transform: none;
    }

    .portfolio-item:hover img {
        transform: none;
    }

    .submit-button:hover {
        transform: none;
    }

    /* Improve touch targets */
    .nav-link,
    .cta-button,
    .submit-button,
    .menu-toggle,
    .social-icon {
        min-height: 44px;
        min-width: 44px;
    }

    /* Remove sticky hover states */
    * {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    }

    /* Better focus indicators for touch devices */
    .nav-link:focus,
    .cta-button:focus,
    .submit-button:focus,
    .menu-toggle:focus {
        outline: 3px solid var(--accent-color);
        outline-offset: 2px;
    }
}

/* iPhone SE and other small devices */
@media (max-width: 380px) {
    .hero-content h1 {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        text-align: center;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.75rem;
    }
    
    .submit-button {
        padding: 0.75rem 1.5rem;
    }
}

/* Improve existing mobile styles */
@media (max-width: 768px) {
    .nav-links.active {
        width: 100%;
        align-items: flex-start;
        padding-left: 2rem;
        padding-right: 2rem;
        height: 100vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-links .nav-link {
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-links .nav-link:last-child {
        border-bottom: none;
    }
    
    .hero-section {
        padding-top: 5rem;
        padding-bottom: 3rem;
        min-height: 90vh;
    }
    
    .portfolio-item {
        aspect-ratio: 16/9;
    }
    
    .portfolio-overlay {
        opacity: 1;
        background: rgba(45, 27, 105, 0.7);
    }
    
    .contact-form {
        display: grid;
        gap: 1.5rem;
        width: 100%;
    }
    
    .form-group input,
    .form-group textarea {
        width: 100%;
        font-size: 16px; /* Prevents iOS zoom on input focus */
    }
    
    .footer-content {
        padding: 2rem 1.5rem;
    }
    
    /* Improve touch targets for better accessibility */
    .nav-link, 
    .cta-button,
    .submit-button,
    .menu-toggle,
    .social-icon {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Fix for iOS notch */
    .main-nav {
        padding-top: env(safe-area-inset-top);
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
    
    /* Fix for sticky hover states on mobile */
    * {
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Improve form usability */
    input, textarea, button {
        -webkit-appearance: none;
        border-radius: 10px;
    }
}

/* Fix for notch on iPhone X and newer */
@supports (padding: max(0px)) {
    .main-nav {
        padding-left: max(2rem, env(safe-area-inset-left));
        padding-right: max(2rem, env(safe-area-inset-right));
    }
    
    body {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
}

.legal-section {
    margin-bottom: 3rem;
}

.legal-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.legal-section h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--text-color);
}

.legal-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.legal-section ul {
    list-style: disc;
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
}

/* Services Page Styles */
.services-hero {
    padding: 8rem 2rem 4rem;
    text-align: center;
}

.services-detailed {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.service-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
    align-items: center;
}

.service-item:nth-child(even) {
    direction: rtl;
}

.service-item:nth-child(even) .service-content {
    direction: ltr;
}

.service-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    margin: 2rem 0;
}

.service-features li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.service-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.service-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px var(--shadow-color);
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-image {
        width: 40%;
    }

    .service-item {
        gap: 3rem;
    }

    .service-content h2 {
        font-size: 2rem;
    }
}

/* Desktop Styles */
@media (min-width: 1025px) {
    .nav-left {
        display: none;
    }

    .nav-links {
        display: flex;
        justify-content: center;
        gap: 2rem;
        margin: 0;
        padding: 0;
        list-style: none;
    }
}

/* Add a class to hide the nav links and social icons on scroll down */
.nav-hidden {
    transform: translateY(-60px);
    opacity: 0;
}

/* Class for scroll hide effect (Desktop nav links only) */
.nav-links-hidden {
    transform: translateY(-60px);
    opacity: 0;
}

/* Ensure content sections have background */
.about-section, 
.services-section, 
.portfolio-section, 
.contact-section {
    background-color: rgba(26, 16, 51, 0.8);
}

/* Add purple cursor styles for interactive elements that use accent colors */
.nav-link:hover,
.contact-nav-link:hover,
.social-icon:hover,
.cta-button:hover,
.portfolio-link:hover,
.footer-column a:hover,
.service-card:hover,
.portfolio-item:hover {
    cursor: pointer;
}

/* Special styles for elements with purple accent */
.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    cursor: default;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    cursor: default;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    cursor: default;
}

/* ===========================================
   Purple Cursor Styling for Colored Elements
   =========================================== */

/* Optional: Custom purple cursor for colored interactive elements */
/* To use a custom cursor, create a purple cursor SVG or image and uncomment below:

.nav-link:hover,
.contact-nav-link,
.social-icon:hover,
.cta-button,
.portfolio-link,
.footer-column a:hover,
.service-card:hover,
.portfolio-item:hover,
.submit-button,
.logo:hover {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path fill="%235C0099" d="M12 2L2 12l5 2 3 8 2-6 6-2z"/></svg>') 12 12, pointer;
}
*/

/* Purple caret color for all focused text inputs that have colored styling */
input:focus,
textarea:focus,
[contenteditable]:focus {
    caret-color: var(--logo-purple);
}

/* Additional purple outline for colored form elements on focus */
.form-group input:focus,
.form-group textarea:focus {
    box-shadow: 0 0 0 3px rgba(92, 0, 153, 0.2);
    border-color: var(--logo-purple);
}

/* Ensure menu toggle has proper cursor */
.menu-toggle {
    cursor: pointer;
}

/* Purple selection color for text (bonus enhancement) */
::selection {
    background-color: var(--logo-purple);
    color: white;
}

::-moz-selection {
    background-color: var(--logo-purple);
    color: white;
}

/* Ensure all interactive colored elements have pointer cursor */
[class*="button"],
[class*="link"],
[class*="cta"] {
    cursor: pointer;
}

/* Service features with purple accent */
.service-features li::before {
    content: '✓';
    color: var(--logo-purple);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* For any future contenteditable elements with color styling */
[contenteditable] {
    caret-color: var(--logo-purple);
}

/* End of purple cursor styling */ 