/* ========================================
   HARRINGTON MEDICAL MANAGEMENT
   Modern CSS with Animations & Shaped Images
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Variables */
:root {
    --navy: #0B1A3E;
    --navy-light: #142855;
    --navy-dark: #06102A;
    --gold: #C9A25F;
    --gold-light: #D4B06E;
    --gold-dark: #A8844A;
    --ivory: #F6F2EA;
    --cream: #FAF8F4;
    --text-light: #F7F7F7;
    --text-muted: #B8C0D0;
    --text-dark: #0F0F0F;
    --text-muted-dark: #4B4F5C;
    
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Inter', sans-serif;
    
    --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    
    --shadow-soft: 0 10px 40px rgba(11, 26, 62, 0.15);
    --shadow-medium: 0 20px 60px rgba(11, 26, 62, 0.2);
    --shadow-gold: 0 10px 40px rgba(201, 162, 95, 0.25);
}

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

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

body {
    font-family: var(--font-sans);
    background: var(--navy);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    min-width: 280px;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 2.5rem); }

p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

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

/* Label Text */
.label-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 500;
    color: var(--gold);
}

/* ========================================
   ANIMATED BACKGROUND
   ======================================== */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--navy);
    overflow: hidden;
}

.animated-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(201, 162, 95, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(201, 162, 95, 0.05) 0%, transparent 35%),
        radial-gradient(circle at 40% 40%, rgba(20, 40, 85, 0.5) 0%, transparent 50%);
    animation: bgFloat 20s ease-in-out infinite;
}

.animated-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

@keyframes bgFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(2%, 2%) rotate(1deg); }
    50% { transform: translate(-1%, 3%) rotate(-1deg); }
    75% { transform: translate(-2%, -1%) rotate(0.5deg); }
}

/* Floating Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0.3;
    animation: particleFloat 15s infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 18s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 22s; width: 6px; height: 6px; }
.particle:nth-child(3) { left: 35%; animation-delay: 4s; animation-duration: 16s; }
.particle:nth-child(4) { left: 50%; animation-delay: 1s; animation-duration: 20s; width: 3px; height: 3px; }
.particle:nth-child(5) { left: 65%; animation-delay: 3s; animation-duration: 19s; }
.particle:nth-child(6) { left: 80%; animation-delay: 5s; animation-duration: 21s; width: 5px; height: 5px; }
.particle:nth-child(7) { left: 90%; animation-delay: 2.5s; animation-duration: 17s; }
.particle:nth-child(8) { left: 5%; animation-delay: 4.5s; animation-duration: 23s; width: 4px; height: 4px; }

@keyframes particleFloat {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    z-index: 1000;
    padding: 1rem 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-medium);
    box-sizing: border-box;
}

.navbar.scrolled {
    background: rgba(11, 26, 62, 0.95);
    backdrop-filter: blur(20px);
    padding: 0.75rem 4%;
    box-shadow: var(--shadow-soft);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: calc(100% - 60px);
    flex-shrink: 1;
    min-width: 0;
}

.logo img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.logo:hover img {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(201, 162, 95, 0.4);
}

.logo-text {
    font-family: var(--font-serif);
    font-size: clamp(0.85rem, 3.5vw, 1.25rem);
    font-weight: 600;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 0.5rem 0;
}

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

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

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

.nav-links a.active {
    color: var(--gold);
}

.nav-links a.active::after {
    width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    padding: 8px;
    margin-right: -8px;
    flex-shrink: 0;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2.5px;
    background: var(--text-light);
    transition: var(--transition-fast);
    border-radius: 1px;
}

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

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

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

/* ========================================
   MOBILE NAVIGATION
   ======================================== */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: var(--navy);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-medium);
    padding: 2rem;
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav a {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: var(--text-light);
    padding: 0.5rem 1rem;
}

.mobile-nav a:hover {
    color: var(--gold);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
    text-align: center;
    white-space: nowrap;
}

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

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

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

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

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

.btn-outline:hover {
    background: var(--gold);
    color: var(--navy);
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

.btn-white {
    background: var(--text-light);
    color: var(--navy);
}

.btn-white:hover {
    background: var(--gold);
    color: var(--navy);
    transform: translateY(-3px);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8rem 5% 4rem;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 1;
    width: 100%;
}

.hero-seal {
    width: clamp(120px, 30vw, 200px);
    height: clamp(120px, 30vw, 200px);
    margin: 0 auto 2rem;
    position: relative;
    animation: sealFloat 6s ease-in-out infinite;
}

.hero-seal img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: sealRotate 60s linear infinite;
}

@keyframes sealFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes sealRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero h1 {
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.3s;
}

.hero-subtitle {
    font-size: clamp(0.875rem, 2vw, 1rem);
    color: var(--gold);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.5s;
}

.hero-description {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    max-width: 600px;
    margin: 0 auto 3rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.7s;
    padding: 0 1rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.9s;
    padding: 0 1rem;
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.2s;
}

.scroll-indicator span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
}

.scroll-arrow {
    width: 30px;
    height: 50px;
    border: 2px solid var(--gold);
    border-radius: 15px;
    position: relative;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { top: 8px; opacity: 1; }
    50% { top: 28px; opacity: 0.3; }
}

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

/* ========================================
   SHAPED IMAGES
   ======================================== */
.shaped-image {
    position: relative;
    overflow: hidden;
}

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

.shaped-image:hover img {
    transform: scale(1.05);
}

/* Circle Shape */
.shape-circle {
    border-radius: 50%;
    aspect-ratio: 1;
}

/* Rounded Shape */
.shape-rounded {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

/* Blob Shape */
.shape-blob {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: blobMorph 8s ease-in-out infinite;
}

@keyframes blobMorph {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    25% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    50% { border-radius: 50% 60% 30% 60% / 30% 60% 70% 40%; }
    75% { border-radius: 60% 40% 60% 30% / 70% 30% 50% 60%; }
}

/* Diamond Shape */
.shape-diamond {
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

/* Hexagon Shape */
.shape-hexagon {
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

/* Wave Shape */
.shape-wave {
    border-radius: 0 50% 0 50%;
}

/* Image Frame */
.image-frame {
    position: relative;
    padding: 1rem;
}

.image-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--gold);
    transform: translate(15px, 15px);
    z-index: -1;
    transition: var(--transition-medium);
}

.image-frame:hover::before {
    transform: translate(10px, 10px);
}

/* ========================================
   SECTIONS
   ======================================== */
section {
    padding: 6rem 5%;
    position: relative;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 0 1rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header .label-text {
    display: block;
    margin-bottom: 1rem;
}

.gold-line {
    width: 80px;
    height: 3px;
    background: var(--gold);
    margin: 1.5rem auto;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-section {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
}

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

.about-image {
    position: relative;
}

.about-image .shaped-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    aspect-ratio: 4/5;
    margin: 0 auto;
}

.about-image .shape-blob {
    box-shadow: var(--shadow-medium);
}

.about-content h2 {
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(201, 162, 95, 0.2);
}

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

.stat-number {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--gold);
    display: block;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-top: 0.5rem;
    display: block;
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services-section {
    background: var(--navy);
}

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

.service-card {
    background: rgba(20, 40, 85, 0.3);
    border: 1px solid rgba(201, 162, 95, 0.15);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-medium);
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-medium);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(201, 162, 95, 0.4);
    box-shadow: var(--shadow-medium);
}

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

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(201, 162, 95, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition-fast);
}

.service-card:hover .service-icon {
    background: var(--gold);
    transform: scale(1.1);
}

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

.service-card:hover .service-icon svg {
    stroke: var(--navy);
}

.service-card h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    margin-bottom: 1rem;
    color: var(--text-light);
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ========================================
   PORTFOLIO SECTION
   ======================================== */
.portfolio-section {
    background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy) 100%);
}

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

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 4/3;
}

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(11, 26, 62, 0.95) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition-medium);
}

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

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

.portfolio-overlay h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    transform: translateY(20px);
    transition: var(--transition-medium);
}

.portfolio-overlay p {
    font-size: 0.9rem;
    transform: translateY(20px);
    transition: var(--transition-medium) 0.1s;
}

.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-overlay p {
    transform: translateY(0);
}

/* ========================================
   FEATURE SECTIONS
   ======================================== */
.feature-section {
    padding: 0;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
    min-height: 80dvh;
}

.feature-row.reverse {
    direction: rtl;
}

.feature-row.reverse > * {
    direction: ltr;
}

.feature-image {
    position: relative;
    overflow: hidden;
    min-height: 300px;
}

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

.feature-image:hover img {
    transform: scale(1.05);
}

.feature-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(11, 26, 62, 0.3) 100%);
}

.feature-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    background: var(--navy);
}

.feature-content .label-text {
    margin-bottom: 1rem;
}

.feature-content h2 {
    margin-bottom: 1.5rem;
}

.feature-content p {
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-section {
    background: var(--ivory);
    color: var(--text-dark);
}

.contact-section h2,
.contact-section h3 {
    color: var(--text-dark);
}

.contact-section p {
    color: var(--text-muted-dark);
}

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

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
}

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

.form-group label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted-dark);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(11, 26, 62, 0.1);
    border-radius: 5px;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition-fast);
    background: transparent;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold);
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    background: rgba(201, 162, 95, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.contact-info-content h4 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.contact-info-content p {
    font-size: 0.95rem;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--navy-dark);
    padding: 4rem 5% 2rem;
    border-top: 1px solid rgba(201, 162, 95, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto 3rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    margin-bottom: 1.5rem;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-column h4 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

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

.footer-column li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.footer-column a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(201, 162, 95, 0.1);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ========================================
   ANIMATIONS ON SCROLL
   ======================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* ========================================
   SUCCESS MESSAGE
   ======================================== */
.success-message {
    background: rgba(201, 162, 95, 0.1);
    border: 2px solid var(--gold);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
}

.success-message h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.success-message p {
    color: var(--text-muted-dark);
}

/* ========================================
   RESPONSIVE - TABLET (max-width: 1024px)
   ======================================== */
@media (max-width: 1024px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .feature-row {
        grid-template-columns: 1fr;
    }
    
    .feature-row.reverse {
        direction: ltr;
    }
    
    .feature-image {
        min-height: 300px;
        order: -1;
    }
    
    .feature-content {
        padding: 3rem 5%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .about-image .shaped-image {
        max-width: 400px;
        height: auto;
        aspect-ratio: 1;
    }
}

/* ========================================
   RESPONSIVE - MOBILE (max-width: 768px)
   ======================================== */
@media (max-width: 768px) {
    /* Navigation - Critical fixes for mobile fit */
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    .navbar {
        padding: 0.6rem 3%;
        width: 100%;
        max-width: 100vw;
        left: 0;
        right: 0;
        box-sizing: border-box;
    }
    
    .navbar.scrolled {
        padding: 0.5rem 3%;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
        margin-left: auto;
    }
    
    .logo {
        gap: 0.5rem;
        max-width: calc(100% - 50px);
        min-width: 0;
    }
    
    .logo img {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
    }
    
    .logo-text {
        font-size: clamp(0.7rem, 3vw, 0.9rem);
        max-width: calc(100vw - 90px);
    }
    
    /* Hero Section */
    .hero {
        min-height: auto;
        padding: 5.5rem 0.5rem 3rem;
        width: 100%;
    }
    
    .hero h1 {
        font-size: clamp(1.4rem, 5.5vw, 2rem);
        line-height: 1.25;
    }
    
    .hero-subtitle {
        font-size: 0.75rem;
    }
    
    .hero-description {
        font-size: 0.85rem;
        padding: 0;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        padding: 0;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 240px;
        padding: 0.75rem 1rem;
    }
    
    /* Sections */
    section {
        padding: 2.5rem 0.5rem;
        width: 100%;
    }
    
    .section-header {
        margin-bottom: 1.5rem;
        padding: 0;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .service-card {
        padding: 1.25rem;
    }
    
    /* About Section */
    .about-grid {
        gap: 1.5rem;
    }
    
    .about-image .shaped-image {
        max-width: 220px;
        aspect-ratio: 1;
    }
    
    .about-content h2 {
        font-size: 1.4rem;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        margin-top: 1.5rem;
        padding-top: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.6rem;
    }
    
    /* Feature Sections */
    .feature-row {
        min-height: auto;
    }
    
    .feature-image {
        min-height: 180px;
    }
    
    .feature-content {
        padding: 1.5rem 0.5rem;
    }
    
    .feature-content h2 {
        font-size: 1.4rem;
    }
    
    .feature-content {
        padding: 2.5rem 1rem;
    }
    
    .feature-content h2 {
        font-size: 1.75rem;
    }
    
    /* Portfolio Grid */
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    /* Contact Section */
    .contact-grid {
        gap: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-form form > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }
    
    .contact-info-item {
        gap: 1rem;
    }
    
    .contact-info-icon {
        width: 45px;
        height: 45px;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-brand {
        max-width: 100%;
    }
    
    .footer-brand .logo {
        justify-content: center;
    }
    
    .footer-column h4 {
        margin-bottom: 1rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.75rem;
    }
    
    /* Process Section (Services Page) */
    div[style*="display: flex; gap: 2rem"] {
        flex-direction: column !important;
        gap: 1.5rem !important;
    }
    
    div[style*="width: 60px; height: 60px"] {
        width: 50px !important;
        height: 50px !important;
    }
    
    /* Testimonials */
    div[style*="padding-left: 3rem"] {
        padding-left: 1rem !important;
    }
    
    /* Specialization cards */
    div[style*="border-left: 4px solid var(--gold)"] {
        padding: 2rem 1.5rem !important;
    }
    
    /* Results section */
    div[style*="grid-template-columns: repeat(auto-fit, minmax(250px, 1fr))"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    div[style*="font-size: 3.5rem"] {
        font-size: 2.5rem !important;
    }
}

/* ========================================
   RESPONSIVE - SMALL MOBILE (max-width: 480px)
   ======================================== */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .navbar {
        padding: 0.5rem 2.5%;
    }
    
    .logo-text {
        font-size: 0.75rem;
        max-width: calc(100vw - 75px);
    }
    
    .logo img {
        width: 32px;
        height: 32px;
    }
    
    .hero {
        padding: 6rem 0.75rem 3rem;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    section {
        padding: 3rem 0.75rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 0.5rem;
    }
    
    .service-card {
        padding: 1.25rem;
    }
    
    .feature-content {
        padding: 2rem 0.75rem;
    }
    
    .contact-form {
        padding: 1.25rem;
    }
    
    .footer {
        padding: 3rem 0.75rem 1.5rem;
    }
    
    .mobile-nav a {
        font-size: 1.5rem;
    }
    
    /* Results section - single column */
    div[style*="grid-template-columns: repeat(auto-fit, minmax(250px, 1fr))"] {
        grid-template-columns: 1fr !important;
    }
}

/* ========================================
   RESPONSIVE - EXTRA SMALL (max-width: 360px)
   ======================================== */
@media (max-width: 360px) {
    .logo-text {
        display: none;
    }
    
    .hero h1 {
        font-size: 1.35rem;
    }
    
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.7rem;
    }
}

/* ========================================
   TOUCH DEVICE OPTIMIZATIONS
   ======================================== */
@media (hover: none) {
    .service-card:hover {
        transform: none;
    }
    
    .portfolio-item:hover img {
        transform: none;
    }
    
    .portfolio-item:hover .portfolio-overlay {
        opacity: 1;
    }
    
    .portfolio-overlay h3,
    .portfolio-overlay p {
        transform: translateY(0) !important;
    }
    
    .shaped-image:hover img {
        transform: none;
    }
    
    .feature-image:hover img {
        transform: none;
    }
}

/* ========================================
   REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .particle {
        display: none;
    }
    
    .animated-bg::before {
        animation: none;
    }
}
