/* ============================================
   PREMIUM LAWYER WEBSITE - MODERN STYLESHEET
   ============================================ */

/* Premium Color System */
:root {
    /* Deep Elegant Dark Primary */
    --primary-dark: #0a0e27;
    --primary-deep: #1a1f3a;
    --primary-navy: #2d3561;
    
    /* Modern Accent Colors - Navy Blue */
    --accent-primary: #0B2545;
    --accent-secondary: #133b66;
    --accent-gold: #f59e0b;
    --accent-teal: #14b8a6;
    
    /* Soft Neutral Backgrounds */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-dark: #0f172a;
    
    /* Text Colors */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-light: #64748b;
    --text-white: #ffffff;
    --text-muted: #94a3b8;
    
    /* Borders & Dividers */
    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;
    --border-dark: #94a3b8;
    
    /* Shadows - Premium Depth */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 20px rgba(11, 37, 69, 0.3);
    
    /* Transitions - Smooth & Elegant */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Georgia', 'Times New Roman', serif;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Page Transition Wrapper */
body {
    opacity: 1;
    transition: opacity 0.4s ease-in-out;
}

body.page-transitioning {
    opacity: 0;
}

/* Typography - Refined & Modern */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.03em;
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.02em;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    letter-spacing: -0.01em;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.8;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

/* Header & Navigation - Premium Glass Effect */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: var(--transition-base);
}

header.scrolled {
    box-shadow: var(--shadow-md);
    padding: 1rem 0;
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    transition: var(--transition-base);
}

.logo:hover {
    transform: scale(1.05);
}

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

.nav-menu a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition-base);
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    transition: var(--transition-base);
    border-radius: 2px;
}

.nav-menu a:hover::before,
.nav-menu a.active::before {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.nav-menu a.active {
    color: var(--accent-primary);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--primary-dark);
    cursor: pointer;
    transition: var(--transition-base);
    padding: 0.5rem;
}

.mobile-menu-toggle:hover {
    transform: scale(1.1);
    color: var(--accent-primary);
}

/* Hero Section - Premium Gradient with Depth */
.hero {
    background: linear-gradient(135deg, #0B2545 0%, #133b66 50%, #1a4d7a 100%);
    color: var(--text-white);
    padding: 8rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(19, 59, 102, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(26, 77, 122, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.4;
    pointer-events: none;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out;
}

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

.hero-image {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid rgba(255, 255, 255, 0.2);
    margin: 0 auto 3rem;
    display: block;
    box-shadow: var(--shadow-2xl), 0 0 0 20px rgba(255, 255, 255, 0.05);
    transition: var(--transition-slow);
    animation: fadeInScale 1s ease-out 0.2s both;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-image:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-2xl), var(--shadow-glow);
}

.hero h1 {
    color: var(--text-white);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 2rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Buttons - Premium with Hover Effects */
.btn {
    display: inline-block;
    padding: 1.125rem 2.75rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.875rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: var(--text-white);
    box-shadow: var(--shadow-lg), 0 0 0 0 rgba(11, 37, 69, 0.4);
    position: relative;
    z-index: 1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl), 0 0 20px rgba(11, 37, 69, 0.5);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--text-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Container & Sections */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

.section {
    padding: 5.4rem 0;
    position: relative;
}

.section.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 1.5rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-radius: 2px;
}

.section-title p {
    margin-top: 1rem;
    color: var(--text-light);
    font-size: 1.125rem;
}

/* Practice Areas Cards - Glass Morphism */
.practice-areas {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    position: relative;
}

.practice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.practice-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: var(--transition-base);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.practice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-base);
}

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

.practice-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(99, 102, 241, 0.3);
}

.practice-card-icon {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition-base);
}

.practice-card:hover .practice-card-icon {
    transform: scale(1.1) rotate(5deg);
}

.practice-card h3 {
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
    color: var(--primary-dark);
}

.practice-card p {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 0;
    line-height: 1.7;
}

/* About Page */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    margin-top: 3rem;
}

.about-image {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-2xl);
    transition: var(--transition-slow);
}

.about-image:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-2xl), var(--shadow-glow);
}

.about-text h3 {
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    color: var(--primary-dark);
}

.about-text ul {
    list-style: none;
    margin-left: 0;
}

.about-text li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.about-text li:hover {
    padding-left: 0.5rem;
    border-color: var(--accent-primary);
}

.about-text li:last-child {
    border-bottom: none;
}

.about-text li strong {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-right: 0.5rem;
}

/* Practice Areas Page */
.services-list {
    margin-top: 3rem;
}

.service-item {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    padding: 3.5rem;
    margin-bottom: 2.5rem;
    border-left: 5px solid var(--accent-primary);
    box-shadow: var(--shadow-lg);
    border-radius: 12px;
    transition: var(--transition-base);
    position: relative;
}

.service-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-xl);
    border-left-color: var(--accent-secondary);
}

.service-item h3 {
    margin-bottom: 1.25rem;
    color: var(--primary-dark);
    font-weight: 700;
}

.service-item p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Blog Page */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.blog-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.blog-card {
    background: var(--bg-primary);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
    border: 1px solid var(--border-light);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: rgba(0, 0, 0, 0.2);
}

.blog-card-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-navy) 50%, var(--accent-primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 3.5rem;
    position: relative;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: var(--transition-base);
}

.blog-card:hover .blog-card-image::before {
    opacity: 1;
}

.blog-card-content {
    padding: 2.5rem;
}

.blog-card-meta {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
    font-weight: 500;
}

.blog-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--primary-dark);
    transition: var(--transition-fast);
}

.blog-card:hover h3 {
    color: var(--accent-primary);
}

.blog-card p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.7;
}

/* Article Page */
.article-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.article-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
}

.article-meta {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.article-content {
    line-height: 1.9;
    font-size: 1.125rem;
}

.article-content h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    font-size: 2rem;
}

.article-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    color: var(--primary-dark);
    font-size: 1.5rem;
}

.article-content ul,
.article-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.article-content li {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.article-content strong {
    color: var(--primary-dark);
    font-weight: 600;
}

.back-to-blog {
    display: inline-flex;
    align-items: center;
    color: var(--primary-dark);
    margin-bottom: 2rem;
    font-weight: 500;
    transition: var(--transition-base);
}

.back-to-blog:hover {
    color: var(--accent-primary);
}

/* Contact Page */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    padding: 3.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.contact-info h3 {
    margin-bottom: 2.5rem;
    color: var(--primary-dark);
}

.contact-item {
    margin-bottom: 2.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    transition: var(--transition-base);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.contact-item-icon {
    font-size: 1.75rem;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.contact-item-content h4 {
    margin-bottom: 0.75rem;
    color: var(--primary-dark);
    font-size: 1.125rem;
}

.contact-item-content p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

.contact-item-content a {
    color: var(--accent-primary);
    transition: var(--transition-fast);
}

.contact-item-content a:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

.contact-form {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    padding: 3.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
}

.contact-form h3 {
    margin-bottom: 2.5rem;
    color: var(--primary-dark);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9375rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition-base);
    background: var(--bg-primary);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(11, 37, 69, 0.1);
}

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

/* Footer */
footer {
    background: linear-gradient(180deg, #0B2545 0%, #133b66 100%);
    color: var(--text-white);
    padding: 5rem 2.5rem 2.5rem;
    margin-top: 0;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: var(--text-white);
    margin-bottom: 2rem;
    font-size: 1.375rem;
}

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

.footer-section ul li {
    margin-bottom: 1rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-base);
    display: inline-block;
}

.footer-section a:hover {
    color: var(--text-white);
    transform: translateX(5px);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE FIRST APPROACH
   ============================================ */

/* Large Tablets and Small Desktops (1024px and below) */
@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }

    nav {
        padding: 0 2rem;
    }

    .practice-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }

    .blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }

    .section {
        padding: 4.5rem 0;
    }
}

/* Tablets (768px and below) */
@media (max-width: 768px) {
    /* Navigation */
    .mobile-menu-toggle {
        display: block;
        min-width: 44px;
        min-height: 44px;
        padding: 0.75rem;
    }

    .nav-menu {
        position: fixed;
        top: 72px;
        left: -100%;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: var(--transition-base);
        box-shadow: var(--shadow-xl);
        padding: 2.5rem 0;
        gap: 1rem;
        max-height: calc(100vh - 72px);
        overflow-y: auto;
        z-index: 999;
    }

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

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 1rem 2rem;
        min-height: 44px;
        width: 100%;
        font-size: 1.125rem;
    }

    /* Typography */
    h1 {
        font-size: clamp(1.875rem, 5vw, 2.5rem);
        margin-bottom: 1.25rem;
    }

    h2 {
        font-size: clamp(1.75rem, 4vw, 2.25rem);
        margin-bottom: 1.25rem;
    }

    h3 {
        font-size: clamp(1.375rem, 3vw, 1.75rem);
        margin-bottom: 1rem;
    }

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

    /* Hero Section */
    .hero {
        padding: 4rem 1.5rem;
    }

    .hero-image {
        width: 200px;
        height: 200px;
        margin-bottom: 2rem;
    }

    .hero h1 {
        font-size: clamp(1.875rem, 6vw, 2.75rem);
        margin-bottom: 1.5rem;
    }

    .hero p {
        font-size: clamp(1rem, 2.5vw, 1.25rem);
        margin-bottom: 2rem;
        line-height: 1.7;
    }

    /* Layout Adjustments */
    .about-content,
    .contact-section {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .practice-grid,
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section {
        padding: 3rem 0;
    }

    .container {
        padding: 0 1.5rem;
    }

    .section-title {
        margin-bottom: 2.5rem;
    }

    /* Buttons - Touch Targets */
    .btn {
        padding: 1rem 2rem;
        font-size: 0.875rem;
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Cards */
    .practice-card,
    .blog-card,
    .service-item {
        padding: 2rem;
    }

    .blog-card-content {
        padding: 1.75rem;
    }

    .blog-card-image {
        height: 200px;
    }

    /* Contact */
    .contact-info,
    .contact-form {
        padding: 2rem;
    }

    .contact-item {
        padding: 1.25rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    /* Footer */
    footer {
        padding: 3rem 1.5rem 2rem;
    }

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

    /* Article */
    .article-container {
        padding: 0 1.5rem;
    }

    .article-content {
        font-size: 1.0625rem;
        line-height: 1.8;
    }

    .article-content h2 {
        font-size: clamp(1.5rem, 4vw, 1.875rem);
        margin-top: 2.5rem;
    }

    .article-content h3 {
        font-size: clamp(1.25rem, 3vw, 1.5rem);
        margin-top: 2rem;
    }

    /* Form Elements - Touch Targets */
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 1rem 1.125rem;
        font-size: 1rem;
        min-height: 44px;
        -webkit-appearance: none;
        appearance: none;
    }

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

    .form-group label {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    /* Images */
    img {
        max-width: 100%;
        height: auto;
    }

    .about-image {
        width: 100%;
        margin-bottom: 2rem;
    }

    /* Header */
    header {
        padding: 1rem 0;
    }

    nav {
        padding: 0 1.5rem;
    }

    .logo {
        font-size: 1.5rem;
    }
}

/* Mobile Phones (480px and below) */
@media (max-width: 480px) {
    /* Navigation */
    .mobile-menu-toggle {
        font-size: 1.5rem;
        padding: 0.5rem;
    }

    .nav-menu {
        top: 68px;
        padding: 2rem 0;
    }

    /* Typography */
    h1 {
        font-size: clamp(1.75rem, 8vw, 2.25rem);
    }

    h2 {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }

    h3 {
        font-size: clamp(1.25rem, 6vw, 1.5rem);
    }

    /* Hero */
    .hero {
        padding: 3rem 1rem;
    }

    .hero-image {
        width: 180px;
        height: 180px;
        margin-bottom: 1.5rem;
    }

    .hero h1 {
        font-size: clamp(1.75rem, 8vw, 2.25rem);
        margin-bottom: 1.25rem;
    }

    .hero p {
        font-size: clamp(0.9375rem, 4vw, 1.125rem);
        margin-bottom: 1.75rem;
    }

    /* Buttons */
    .btn {
        padding: 0.9375rem 1.75rem;
        font-size: 0.8125rem;
        width: 100%;
        max-width: 100%;
        letter-spacing: 1px;
    }

    .btn-secondary {
        margin-top: 0.5rem;
    }

    /* Sections */
    .section {
        padding: 2.5rem 0;
    }

    .container {
        padding: 0 1rem;
    }

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

    .section-title h2 {
        padding-bottom: 1rem;
    }

    /* Cards */
    .practice-card,
    .blog-card,
    .service-item {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .practice-card-icon {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .blog-card-content {
        padding: 1.5rem;
    }

    .blog-card-image {
        height: 180px;
    }

    /* Contact */
    .contact-info,
    .contact-form {
        padding: 1.5rem;
    }

    .contact-item {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .contact-item-icon {
        font-size: 1.5rem;
    }

    /* Footer */
    footer {
        padding: 2.5rem 1rem 1.5rem;
    }

    .footer-content {
        gap: 2rem;
    }

    .footer-section h3 {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }

    /* Article */
    .article-header {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }

    .article-content {
        font-size: 1rem;
    }

    .article-content ul,
    .article-content ol {
        margin-left: 1.5rem;
    }

    /* Header */
    header {
        padding: 0.875rem 0;
    }

    .logo {
        font-size: 1.375rem;
    }

    /* Grid Adjustments */
    .practice-grid,
    .blog-grid {
        gap: 1.25rem;
    }
}

/* Very Small Mobile Phones (320px and below) */
@media (max-width: 320px) {
    .hero {
        padding: 2.5rem 0.75rem;
    }

    .hero-image {
        width: 150px;
        height: 150px;
    }

    .container {
        padding: 0 0.75rem;
    }

    .practice-card,
    .blog-card,
    .service-item,
    .contact-info,
    .contact-form {
        padding: 1.25rem;
    }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.75rem;
    }
}

/* Landscape Mobile Devices */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 3rem 1.5rem;
    }

    .hero-image {
        width: 160px;
        height: 160px;
    }

    .nav-menu {
        max-height: calc(100vh - 72px);
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Ensure all interactive elements are touch-friendly */
    .btn,
    .nav-menu a,
    .blog-card-link,
    .practice-card,
    .contact-item-content a {
        -webkit-tap-highlight-color: rgba(11, 37, 69, 0.2);
        tap-highlight-color: rgba(11, 37, 69, 0.2);
    }

    /* Increase touch target sizes */
    .mobile-menu-toggle {
        min-width: 48px;
        min-height: 48px;
    }

    /* Remove hover effects on touch devices */
    .practice-card:hover,
    .blog-card:hover {
        transform: none;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize text rendering */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.highlight {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}
