/* Modern Mobile CSS for Hagopjanian Law Group Website */
/* Mobile-first design optimized for modern smartphones */

/* CSS Custom Properties - only for mobile */
@media (max-width: 768px) {
    :root {
        --primary-color: #b2883a;
        --secondary-color: #2d2d2d;
        --accent-color: #d4a574;
        --text-primary: #ffffff;
        --text-secondary: #e0e0e0;
        --background-dark: #1a1a1a;
        --background-light: #2d2d2d;
        --white: #ffffff;
        --gradient-primary: linear-gradient(135deg, #b2883a 0%, #d4a574 100%);
        --gradient-secondary: linear-gradient(135deg, #2d2d2d 0%, #404040 100%);
        --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.15);
        --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.2);
        --shadow-heavy: 0 8px 32px rgba(0, 0, 0, 0.3);
        --border-radius: 16px;
        --border-radius-large: 24px;
        --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        --safe-area-inset-top: env(safe-area-inset-top);
        --safe-area-inset-bottom: env(safe-area-inset-bottom);
    }

    /* Base Mobile Styles */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        -webkit-tap-highlight-color: transparent;
    }

    html {
        font-size: 16px;
        scroll-behavior: smooth;
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
        width: 100%;
        height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
    }

    body {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
        line-height: 1.6;
        color: var(--text-primary);
        background-color: var(--background-dark);
        overflow-x: hidden;
        overflow-y: auto;
        padding-top: var(--safe-area-inset-top);
        padding-bottom: var(--safe-area-inset-bottom);
        width: 100%;
        min-height: 100vh;
        margin: 0;
        position: relative;
    }

    /* Typography */
    h1, h2, h3, h4, h5, h6 {
        font-weight: 600;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    h5 { font-size: 1.1rem; }
    h6 { font-size: 1rem; }

    p {
        margin-bottom: 1rem;
        line-height: 1.7;
    }

    /* Container */
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 1rem;
        margin: 0;
        box-sizing: border-box;
    }

    /* Navigation */
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1000;
        background: rgba(26, 26, 26, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(178, 136, 58, 0.2);
        padding-top: var(--safe-area-inset-top);
        box-sizing: border-box;
    }

    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
        height: 70px;
        width: 100%;
        box-sizing: border-box;
    }

    .nav-logo .logo {
        height: 50px;
        width: auto;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100vw;
        height: calc(100vh - 70px);
        background: var(--background-dark);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        transition: left 0.3s ease-in-out;
        overflow-y: auto;
        padding: 2rem 0;
        border-top: 1px solid rgba(178, 136, 58, 0.2);
        box-sizing: border-box;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        list-style: none;
        margin: 0;
    }

    .nav-link {
        display: block;
        padding: 1rem 2rem;
        color: var(--text-primary);
        text-decoration: none;
        font-size: 1.1rem;
        font-weight: 500;
        transition: var(--transition);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(178, 136, 58, 0.1);
        color: var(--primary-color);
        padding-left: 2.5rem;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        padding: 0.5rem;
        z-index: 1001;
    }

    .bar {
        width: 25px;
        height: 3px;
        background: var(--text-primary);
        margin: 3px 0;
        transition: var(--transition);
        border-radius: 2px;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* Hero Section */
    .hero {
        min-height: 100vh;
        display: flex;
        align-items: center;
        padding: 90px 0 2rem;
        background: linear-gradient(135deg, var(--background-dark) 0%, var(--background-light) 100%);
        position: relative;
        overflow: visible;
        width: 100%;
        box-sizing: border-box;
        margin-top: 0;
    }

    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 20% 80%, rgba(178, 136, 58, 0.1) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(178, 136, 58, 0.1) 0%, transparent 50%);
        z-index: 1;
        pointer-events: none;
    }

    .hero-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
        position: relative;
        z-index: 2;
        padding: 0 1rem;
        width: 100%;
        box-sizing: border-box;
        overflow: visible;
    }

    .hero-content {
        max-width: 600px;
        position: relative;
        z-index: 2;
    }

    .company-name {
        font-size: 1rem;
        font-weight: 600;
        color: var(--primary-color);
        margin-bottom: 1rem;
        letter-spacing: 2px;
        text-transform: uppercase;
        opacity: 0;
        animation: fadeInUp 0.8s ease-out 0.2s forwards;
    }

    .hero-title {
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 1.5rem;
        line-height: 1.2;
        background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        opacity: 0;
        animation: fadeInUp 0.8s ease-out 0.5s forwards;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        opacity: 0.9;
        line-height: 1.6;
        opacity: 0;
        animation: fadeInUp 0.8s ease-out 0.8s forwards;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        opacity: 0;
        animation: fadeInUp 0.8s ease-out 1.1s forwards;
    }

    .hero-image {
        margin-top: 1rem;
        position: relative;
        z-index: 2;
        overflow: visible;
    }

    .attorney-image {
        max-width: 300px;
        height: auto;
        border-radius: var(--border-radius-large);
        border: 3px solid var(--primary-color);
        box-shadow: var(--shadow-heavy);
        opacity: 0;
        animation: fadeInUp 0.8s ease-out 1.4s forwards;
        position: relative;
        z-index: 2;
    }

    /* Buttons */
    .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 1rem 2rem;
        border-radius: var(--border-radius);
        text-decoration: none;
        font-weight: 600;
        font-size: 1rem;
        transition: var(--transition);
        border: none;
        cursor: pointer;
        min-height: 48px;
        min-width: 48px;
        position: relative;
        overflow: hidden;
    }

    .btn-primary {
        background: var(--gradient-primary);
        color: var(--white);
        box-shadow: var(--shadow-medium);
    }

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

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

    .btn-secondary:hover {
        background: var(--white);
        color: var(--background-dark);
        transform: translateY(-2px);
    }

    /* Features Section */
    .features {
        padding: 4rem 0;
        background: var(--background-dark);
        width: 100%;
        box-sizing: border-box;
    }

    .features-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
        width: 100%;
        box-sizing: border-box;
    }

    .feature-card {
        background: var(--background-light);
        padding: 2rem 1.5rem;
        border-radius: var(--border-radius);
        border: 1px solid rgba(178, 136, 58, 0.2);
        box-shadow: var(--shadow-light);
        transition: var(--transition);
        text-align: center;
        position: relative;
        overflow: hidden;
    }

    .feature-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--gradient-primary);
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }

    .feature-card:hover::before {
        transform: scaleX(1);
    }

    .feature-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-medium);
        border-color: var(--primary-color);
    }

    .feature-icon {
        width: 70px;
        height: 70px;
        background: var(--gradient-primary);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 1.5rem;
        font-size: 1.8rem;
        color: var(--white);
        box-shadow: var(--shadow-medium);
    }

    .feature-card h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
        color: var(--text-primary);
    }

    .feature-card p {
        color: var(--text-secondary);
        line-height: 1.6;
        font-size: 0.95rem;
    }

    /* Services Preview */
    .services-preview {
        padding: 4rem 0;
        background: var(--background-dark);
        width: 100%;
        box-sizing: border-box;
    }

    .services-preview h2 {
        text-align: center;
        font-size: 2rem;
        margin-bottom: 2rem;
        color: var(--text-primary);
    }

    .practice-areas-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .practice-area-card {
        background: var(--background-light);
        padding: 1.5rem;
        border-radius: var(--border-radius);
        border: 1px solid rgba(178, 136, 58, 0.2);
        box-shadow: var(--shadow-light);
        transition: var(--transition);
        text-align: center;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 80px;
    }

    .practice-area-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-medium);
        background: rgba(178, 136, 58, 0.1);
        border-color: var(--primary-color);
    }

    .practice-area-card h3 {
        font-size: 1.1rem;
        color: var(--text-primary);
        margin: 0;
    }

    /* About Section */
    .about-section {
        padding: 4rem 0;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        color: #333;
    }

    .about-content {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .about-text h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
        color: #333;
    }

    .about-text p {
        font-size: 1rem;
        color: #555;
        margin-bottom: 1.5rem;
        line-height: 1.7;
    }

    .office-image {
        max-width: 100%;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow-medium);
        border: 3px solid var(--primary-color);
    }

    /* CTA Section */
    .cta {
        padding: 4rem 0;
        background: linear-gradient(135deg, var(--secondary-color) 0%, #404040 100%);
        color: var(--white);
        text-align: center;
        position: relative;
        overflow: hidden;
    }

    .cta::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="stars" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="10" cy="10" r="0.5" fill="white" opacity="0.15"/><circle cx="40" cy="40" r="0.8" fill="white" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23stars)"/></svg>');
        opacity: 0.3;
    }

    .cta-content {
        position: relative;
        z-index: 2;
    }

    .cta-content h2 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
        font-weight: 700;
    }

    .cta-content p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        opacity: 0.95;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Footer */
    .footer {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
        color: var(--white);
        padding: 3rem 0 1rem;
        position: relative;
        overflow: hidden;
    }

    .footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
        animation: footerGlow 3s ease-in-out infinite;
    }

    @keyframes footerGlow {
        0%, 100% { opacity: 0.3; }
        50% { opacity: 1; }
    }

    .footer-content {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
        position: relative;
        z-index: 2;
    }

    .footer-section {
        text-align: center;
        opacity: 0;
        transform: translateY(30px);
        animation: footerSlideUp 0.8s ease-out forwards;
    }

    .footer-section:nth-child(1) { animation-delay: 0.1s; }
    .footer-section:nth-child(2) { animation-delay: 0.2s; }
    .footer-section:nth-child(3) { animation-delay: 0.3s; }

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

    .footer-section h4 {
        margin-bottom: 1rem;
        color: var(--white);
        font-size: 1.2rem;
        position: relative;
        padding-bottom: 0.5rem;
    }

    .footer-section h4::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 2px;
        background: var(--primary-color);
        transition: width 0.6s ease-out;
    }

    .footer-section:hover h4::after {
        width: 60px;
    }

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

    .footer-section ul li {
        margin-bottom: 0.5rem;
        position: relative;
        padding-left: 1rem;
    }

    .footer-section ul li::before {
        content: '→';
        position: absolute;
        left: 0;
        color: var(--primary-color);
        font-weight: bold;
        opacity: 0;
        transform: translateX(-10px);
        transition: all 0.3s ease;
    }

    .footer-section ul li:hover::before {
        opacity: 1;
        transform: translateX(0);
    }

    .footer-section ul li a {
        color: var(--white);
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .footer-section ul li a:hover {
        color: var(--primary-color);
        transform: translateX(5px);
    }

    .footer-section p {
        color: var(--white);
        margin-bottom: 0.5rem;
        line-height: 1.6;
    }

    .footer-logo {
        height: 50px;
        margin-bottom: 1rem;
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    }

    .footer-social {
        display: flex;
        gap: 1rem;
        justify-content: center;
        margin-top: 1rem;
    }

    .footer-social a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: rgba(178, 136, 58, 0.1);
        border: 1px solid rgba(178, 136, 58, 0.3);
        border-radius: 50%;
        color: var(--primary-color);
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .footer-social a:hover {
        background: var(--primary-color);
        color: var(--white);
        transform: translateY(-2px) scale(1.1);
        box-shadow: var(--shadow-medium);
    }

    .footer-bottom {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 1rem;
        text-align: center;
        color: var(--text-secondary);
        position: relative;
        z-index: 2;
    }

    .footer-bottom p {
        font-size: 0.9rem;
        margin: 0;
    }

    /* ABOUT PAGE MOBILE STYLES */
    .about-hero {
        padding: 100px 0 3rem;
        background: var(--background-dark);
        text-align: center;
    }

    .about-hero-content {
        max-width: 600px;
        margin: 0 auto;
        padding: 0 1rem;
    }

    .about-hero-content .company-name {
        font-size: 1rem;
        color: var(--primary-color);
        margin-bottom: 1rem;
        letter-spacing: 2px;
        text-transform: uppercase;
    }

    .about-hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
        color: var(--text-primary);
        line-height: 1.2;
    }

    .about-hero-content .hero-subtitle {
        font-size: 1.1rem;
        color: var(--text-secondary);
        line-height: 1.6;
        opacity: 0.9;
    }

    .about-intro {
        padding: 3rem 0;
        background: var(--background-dark);
    }

    .about-intro .intro-content {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .about-intro .intro-text h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
        color: var(--text-primary);
    }

    .about-intro .intro-text p {
        font-size: 1rem;
        color: var(--text-secondary);
        line-height: 1.7;
        margin-bottom: 1.5rem;
    }

    .intro-highlight .highlight-box {
        background: var(--background-light);
        padding: 2rem 1.5rem;
        border-radius: var(--border-radius);
        border: 2px solid var(--primary-color);
        box-shadow: var(--shadow-medium);
        text-align: center;
    }

    .intro-highlight .highlight-box h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        color: var(--primary-color);
    }

    .intro-highlight .highlight-box p {
        font-size: 1rem;
        color: var(--text-secondary);
        line-height: 1.7;
        margin-bottom: 1rem;
    }

    .attorney-profile {
        padding: 3rem 0;
        background: var(--background-dark);
    }

    .attorney-profile h2 {
        text-align: center;
        font-size: 2rem;
        margin-bottom: 1rem;
        color: var(--text-primary);
    }

    .gold-ribbon {
        width: 100px;
        height: 6px;
        background: linear-gradient(135deg, #b2883a 0%, #d4a574 50%, #b2883a 100%);
        margin: 0 auto 1.5rem auto;
        border-radius: 3px;
        position: relative;
        box-shadow: 0 2px 6px rgba(178, 136, 58, 0.3);
    }

    .gold-ribbon::before {
        content: '';
        position: absolute;
        top: -2px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-bottom: 5px solid #b2883a;
    }

    .gold-ribbon::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 5px solid #b2883a;
    }

    .profile-content {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .profile-image {
        order: -1;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .profile-image img {
        width: 100% !important;
        max-width: 350px !important;
        height: 400px !important;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow-medium);
        border: 3px solid var(--primary-color);
        margin: 0 auto;
        object-fit: cover;
        object-position: center;
    }

    /* Mobile-specific overrides for attorney-img */
    .attorney-img {
        width: 100% !important;
        max-width: 350px !important;
        height: 400px !important;
    }

    /* Ensure mobile layout stays intact */
    .profile-image .attorney-img {
        width: 100% !important;
        max-width: 350px !important;
        height: 400px !important;
    }

    .profile-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .profile-box {
        background: var(--background-light);
        padding: 3rem 2.5rem;
        border-radius: var(--border-radius);
        border: 2px solid var(--primary-color);
        box-shadow: var(--shadow-light);
        transition: var(--transition);
        text-align: center;
        min-height: 400px;
        min-width: 350px;
    }

    .profile-box:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-medium);
        border-color: var(--accent-color);
    }

    .box-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
        border-bottom: 2px solid rgba(178, 136, 58, 0.3);
    }

    .box-icon {
        width: 60px;
        height: 60px;
        min-width: 60px;
        min-height: 60px;
        background: var(--gradient-primary);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        color: var(--white);
        box-shadow: var(--shadow-light);
        flex-shrink: 0;
    }

    .box-header h4 {
        font-size: 1.5rem;
        color: var(--primary-color);
        margin: 0;
        line-height: 1.2;
    }

    .box-content p {
        font-size: 0.95rem;
        color: var(--text-secondary);
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    .cert-item {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1rem;
        padding: 1rem;
        background: rgba(178, 136, 58, 0.1);
        border-radius: 12px;
        border: 1px solid rgba(178, 136, 58, 0.3);
    }

    .cert-item i {
        color: var(--primary-color);
        font-size: 1.2rem;
        flex-shrink: 0;
    }

    .cert-item span {
        font-size: 0.9rem;
        color: var(--text-secondary);
        line-height: 1.5;
    }

    .highlight-box {
        display: flex;
        align-items: flex-start;
        gap: 1rem;
        margin-top: 1rem;
        padding: 1rem;
        background: rgba(178, 136, 58, 0.1);
        border-radius: 12px;
        border: 1px solid rgba(178, 136, 58, 0.3);
    }

    .highlight-box i {
        color: var(--primary-color);
        font-size: 1.2rem;
        margin-top: 0.2rem;
        flex-shrink: 0;
    }

    .highlight-box p {
        font-size: 0.9rem;
        color: var(--text-secondary);
        line-height: 1.6;
        margin: 0;
    }

    .page-break-ribbon {
        padding: 2rem 0;
        background: var(--background-dark);
    }

    .ribbon-content {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1.5rem;
    }

    .ribbon-line {
        height: 3px;
        background: var(--gradient-primary);
        border-radius: 2px;
        flex: 1;
        max-width: 100px;
    }

    .ribbon-icon {
        width: 60px;
        height: 60px;
        background: var(--gradient-primary);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.8rem;
        color: var(--white);
        box-shadow: var(--shadow-medium);
        border: 3px solid var(--background-dark);
    }

    .beyond-law {
        padding: 3rem 0;
        background: var(--background-dark);
    }

    .beyond-law-content {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .casual-image {
        width: 100%;
        max-width: 300px;
        height: auto;
        aspect-ratio: 2/3;
        object-fit: cover;
        border-radius: var(--border-radius);
        border: 3px solid var(--primary-color);
        box-shadow: var(--shadow-medium);
        margin: 0 auto;
    }

    .gold-frame-box {
        background: var(--background-light);
        padding: 2rem 1.5rem;
        border-radius: var(--border-radius);
        border: 3px solid var(--primary-color);
        box-shadow: var(--shadow-medium);
        transition: var(--transition);
        text-align: center;
    }

    .gold-frame-box:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-medium);
        border-color: var(--accent-color);
    }

    .gold-frame-box h3 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
        color: var(--primary-color);
    }

    .gold-frame-box p {
        font-size: 1rem;
        color: var(--text-secondary);
        line-height: 1.7;
        margin: 0;
    }

    /* SERVICES PAGE MOBILE STYLES */
    .services-hero {
        padding: 100px 0 3rem;
        background: var(--background-dark);
        text-align: center;
    }

    .services-hero-content {
        max-width: 600px;
        margin: 0 auto;
        padding: 0 1rem;
    }

    .services-hero-content .company-name {
        font-size: 1rem;
        color: var(--primary-color);
        margin-bottom: 1rem;
        letter-spacing: 2px;
        text-transform: uppercase;
    }

    .services-hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
        color: var(--text-primary);
        line-height: 1.2;
    }

    .services-hero-content .hero-subtitle {
        font-size: 1.1rem;
        color: var(--text-secondary);
        line-height: 1.6;
        opacity: 0.9;
    }

    .services-intro {
        padding: 3rem 0;
        background: var(--background-dark);
    }

    .services-intro .intro-content {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .services-intro .intro-text h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
        color: var(--text-primary);
    }

    .services-intro .intro-text p {
        font-size: 1rem;
        color: var(--text-secondary);
        line-height: 1.7;
        margin-bottom: 1.5rem;
    }

    .services-main {
        padding: 3rem 0;
        background: var(--background-dark);
    }

    .services-main h2 {
        text-align: center;
        font-size: 2rem;
        margin-bottom: 2rem;
        color: var(--text-primary);
    }

    .services-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .service-card {
        background: var(--background-light);
        padding: 2rem 1.5rem;
        border-radius: var(--border-radius);
        border: 2px solid var(--primary-color);
        box-shadow: var(--shadow-light);
        transition: var(--transition);
        text-align: center;
        min-height: auto;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .service-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-medium);
        border-color: var(--accent-color);
    }

    .service-icon {
        width: 70px;
        height: 70px;
        background: var(--gradient-primary);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 1rem;
        font-size: 1.8rem;
        color: var(--white);
        box-shadow: var(--shadow-medium);
    }

    .service-card h3 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
        color: var(--primary-color);
    }

    .service-card p {
        font-size: 0.95rem;
        color: var(--text-secondary);
        line-height: 1.6;
        margin-bottom: 1rem;
        flex-grow: 1;
    }

    .service-features {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
        margin: 1rem 0;
    }

    .feature-tag {
        background: rgba(178, 136, 58, 0.1);
        color: var(--primary-color);
        padding: 0.4rem 0.8rem;
        border-radius: 20px;
        font-size: 0.8rem;
        border: 1px solid rgba(178, 136, 58, 0.3);
        transition: var(--transition);
    }

    .feature-tag:hover {
        background: rgba(178, 136, 58, 0.2);
        transform: translateY(-2px);
    }

    .learn-more-btn {
        align-self: center;
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
        font-weight: 500;
        border: 2px solid var(--primary-color);
        color: var(--primary-color);
        background: transparent;
        border-radius: var(--border-radius);
        cursor: pointer;
        transition: var(--transition);
        text-decoration: none;
        display: inline-block;
        margin-top: auto;
    }

    .learn-more-btn:hover {
        background: var(--primary-color);
        color: var(--white);
        transform: translateY(-2px);
        box-shadow: var(--shadow-medium);
    }

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

    /* Touch-friendly improvements */
    .btn,
    .nav-link,
    .practice-area-card,
    .feature-card,
    .profile-box,
    .service-card {
        -webkit-tap-highlight-color: rgba(178, 136, 58, 0.2);
    }

    /* Additional Mobile Hero Fixes */
    .hero {
        position: relative;
        z-index: 1;
        isolation: isolate;
    }

    .hero-container {
        position: relative;
        z-index: 2;
        isolation: isolate;
    }

    .hero-image {
        position: relative;
        z-index: 3;
        isolation: isolate;
        transform: translateZ(0);
        will-change: transform;
    }

    .attorney-image {
        position: relative;
        z-index: 3;
        isolation: isolate;
        transform: translateZ(0);
        will-change: transform;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }

    /* Ensure proper stacking context */
    .navbar {
        isolation: isolate;
    }

    /* Fix for iOS Safari */
    @supports (-webkit-touch-callout: none) {
        .hero {
            -webkit-transform: translateZ(0);
            transform: translateZ(0);
        }
        
        .hero-image {
            -webkit-transform: translateZ(0);
            transform: translateZ(0);
        }
        
        .attorney-image {
            -webkit-transform: translateZ(0);
            transform: translateZ(0);
        }
    }

    /* Mobile-specific optimizations */
    @media (max-width: 480px) {
        .hero-title,
        .about-hero-content h1,
        .services-hero-content h1 {
            font-size: 2rem;
        }
        
        .hero-subtitle,
        .about-hero-content .hero-subtitle,
        .services-hero-content .hero-subtitle {
            font-size: 1rem;
        }
        
        .container {
            padding: 0 0.75rem;
        }
        
        .btn {
            padding: 0.875rem 1.5rem;
            font-size: 0.95rem;
        }
        
        .feature-card,
        .practice-area-card,
        .profile-box,
        .service-card {
            padding: 1.5rem 1rem;
        }

        .about-intro .intro-text h2,
        .services-intro .intro-text h2 {
            font-size: 1.6rem;
        }

        .profile-box .box-header h4 {
            font-size: 1.2rem;
        }

        .service-card h3 {
            font-size: 1.3rem;
        }
    }

    /* Landscape orientation adjustments */
    @media (max-width: 768px) and (orientation: landscape) {
        .hero,
        .about-hero,
        .services-hero {
            min-height: 80vh;
            padding: 80px 0 1rem;
        }
        
        .hero-title,
        .about-hero-content h1,
        .services-hero-content h1 {
            font-size: 2rem;
        }
        
        .nav-menu {
            max-height: 60vh;
        }
    }

    /* High DPI displays */
    @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
        .btn,
        .nav-link {
            border-width: 0.5px;
        }
    }

    /* Reduced motion preferences */
    @media (prefers-reduced-motion: reduce) {
        * {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }

    /* Dark mode support */
    @media (prefers-color-scheme: dark) {
        :root {
            --background-dark: #000000;
            --background-light: #1a1a1a;
        }
    }

    /* Safe area support for notched devices */
    @supports (padding: max(0px)) {
        .navbar {
            padding-top: max(1rem, var(--safe-area-inset-top));
        }
        
        .footer {
            padding-bottom: max(1rem, var(--safe-area-inset-bottom));
        }
    }

    /* Zoom Support - Allow content to resize when zooming */
    * {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    /* Ensure containers can resize with zoom */
    .container {
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }

    /* Allow text to scale with zoom */
    body {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
        text-size-adjust: 100%;
        min-width: 0;
    }

    /* Ensure images scale properly with zoom */
    img {
        max-width: 100%;
        height: auto;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }

    /* Allow buttons and interactive elements to scale */
    .btn,
    .nav-link,
    .practice-area-card,
    .feature-card,
    .profile-box,
    .service-card {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        min-width: 0;
    }

    /* Ensure grid layouts can resize with zoom */
    .features-grid,
    .practice-areas-grid,
    .profile-grid,
    .services-grid {
        min-width: 0;
        width: 100%;
    }

    /* Allow cards to resize with zoom */
    .feature-card,
    .practice-area-card,
    .profile-box,
    .service-card {
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
    }
}

