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

:root {
    /* Color Palette - Black & Gold Theme */
    --primary-black: #000000;
    --secondary-black: #1a1a1a;
    --tertiary-black: #2d2d2d;
    --primary-gold: #D4AF37;
    --secondary-gold: #C5A028;
    --light-gold: #F4E4BC;
    --pale-gold: #FFF9E6;
    --white: #FFFFFF;
    --off-white: #F8F8F8;
    --gray: #666666;
    --light-gray: #E5E5E5;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-padding: 0 20px;
    
    /* Responsive breakpoints */
    --breakpoint-mobile: 480px;
    --breakpoint-tablet: 768px;
    --breakpoint-desktop: 1024px;
    
    /* Transitions */
    --transition: all 0.3s ease;
    
    /* Shadows */
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.2);
    --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.3);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--tertiary-black);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* ===================================
   Typography
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-black);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--gray);
}

.gold-text {
    color: var(--primary-gold);
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    z-index: 1000;
    transition: var(--transition);
    padding: 20px 0;
}

.navbar.scrolled {
    background-color: var(--primary-black);
    box-shadow: var(--shadow-medium);
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-gold);
    font-family: var(--font-heading);
    cursor: pointer;
}

.logo i {
    font-size: 2rem;
}

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

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    padding: 8px 0;
    position: relative;
}

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

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

.nav-link:hover,
.nav-link.active {
    color: var(--primary-gold);
}

.nav-link.cta-btn {
    background-color: var(--primary-gold);
    color: var(--primary-black);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
}

.nav-link.cta-btn::after {
    display: none;
}

.nav-link.cta-btn:hover {
    background-color: var(--secondary-gold);
    color: var(--primary-black);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-gold);
    transition: var(--transition);
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

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

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

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

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-black);
    transform: translateY(-3px);
}

.btn-full {
    width: 100%;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--secondary-black) 100%);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(212,175,55,0.05)" stroke-width="1"/></svg>');
    background-size: 100px 100px;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
}

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

.hero-text {
    max-width: 700px;
}

.hero-title {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.1;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--light-gray);
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.hero-stats {
    display: flex;
    gap: 60px;
    animation: fadeInUp 1s ease 0.6s backwards;
}

.stat {
    border-left: 3px solid var(--primary-gold);
    padding-left: 20px;
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--primary-gold);
    margin-bottom: 5px;
}

.stat p {
    color: var(--light-gray);
    font-size: 0.9rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--primary-gold);
    border-radius: 15px;
    position: relative;
}

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

/* ===================================
   Section Headers
   =================================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    color: var(--primary-gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.section-title {
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
}

/* ===================================
   About Section
   =================================== */
.about {
    padding: var(--section-padding);
    background: linear-gradient(180deg, var(--white) 0%, var(--pale-gold) 50%, var(--light-gold) 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-placeholder {
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--tertiary-black) 100%);
    border-radius: 20px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-heavy);
    position: relative;
    overflow: hidden;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
}

.image-placeholder i {
    font-size: 8rem;
    color: var(--primary-gold);
    z-index: 2;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--primary-gold);
    color: var(--primary-black);
    padding: 30px;
    border-radius: 50%;
    text-align: center;
    box-shadow: var(--shadow-gold);
    width: 150px;
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.experience-badge h3 {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.experience-badge p {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-black);
}

.about-text h3 {
    margin-bottom: 20px;
    color: var(--primary-gold);
}

.about-text p {
    margin-bottom: 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    display: flex;
    gap: 15px;
}

.feature-item i {
    font-size: 2rem;
    color: var(--primary-gold);
    margin-top: 5px;
}

.feature-item h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.feature-item p {
    font-size: 0.9rem;
    margin: 0;
}

/* ===================================
   Services Section
   =================================== */
.services {
    padding: var(--section-padding);
    background: linear-gradient(180deg, var(--pale-gold) 0%, var(--white) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--secondary-black) 100%);
    border-radius: 15px;
    padding: 40px 30px;
    transition: var(--transition);
    border: 2px solid var(--tertiary-black);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-gold);
    border-color: var(--primary-gold);
    background: linear-gradient(135deg, var(--secondary-black) 0%, var(--tertiary-black) 100%);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--secondary-gold) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: var(--transition);
}

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

.service-icon i {
    font-size: 2rem;
    color: var(--primary-black);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--primary-gold);
}

.service-card > p {
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: var(--light-gray);
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    font-size: 0.9rem;
    color: var(--light-gray);
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-gold);
    font-weight: bold;
}

/* ===================================
   Team Section
   =================================== */
.team {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--secondary-black) 100%);
}

.team .section-label,
.team .section-title {
    color: var(--white);
}

.team .section-subtitle {
    color: var(--light-gray);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.team-card {
    background-color: var(--tertiary-black);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    border: 2px solid transparent;
}

.team-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-gold);
    box-shadow: var(--shadow-gold);
}

.team-image .image-placeholder {
    aspect-ratio: 1;
    border-radius: 0;
}

.team-image .image-placeholder i {
    font-size: 6rem;
}

.team-image .doctor-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-info {
    padding: 30px;
}

.team-info h3 {
    color: var(--white);
    margin-bottom: 5px;
    font-size: 1.5rem;
}

.team-role {
    color: var(--primary-gold);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.team-bio {
    color: var(--light-gray);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.team-credentials {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.team-credentials span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--light-gray);
    font-size: 0.85rem;
}

.team-credentials i {
    color: var(--primary-gold);
}

/* ===================================
   Testimonials Section
   =================================== */
.testimonials {
    padding: var(--section-padding);
    background: linear-gradient(180deg, var(--primary-black) 0%, var(--secondary-black) 100%);
}

.testimonials .section-label {
    color: var(--primary-gold);
}

.testimonials .section-title {
    color: var(--white);
}

.testimonials .section-subtitle {
    color: var(--light-gray);
}

.testimonials-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto 40px;
    min-height: 350px;
}

.testimonial-card {
    background: linear-gradient(135deg, var(--tertiary-black) 0%, var(--secondary-black) 100%);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow-gold);
    border: 2px solid var(--primary-gold);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.5s ease;
    pointer-events: none;
}

.testimonial-card.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    position: relative;
}

.stars {
    display: flex;
    gap: 5px;
    margin-bottom: 25px;
}

.stars i {
    color: var(--primary-gold);
    font-size: 1.2rem;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--light-gray);
    margin-bottom: 30px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 20px;
}

.author-image {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--secondary-gold) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-image i {
    font-size: 1.5rem;
    color: var(--primary-black);
}

.author-info h4 {
    margin-bottom: 3px;
    font-size: 1.1rem;
    color: var(--white);
}

.author-info p {
    font-size: 0.9rem;
    margin: 0;
    color: var(--light-gray);
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.testimonial-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--primary-gold);
    border: none;
    color: var(--primary-black);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-btn:hover {
    background-color: var(--secondary-gold);
    transform: scale(1.1);
}

.testimonial-dots {
    display: flex;
    gap: 10px;
}

.testimonial-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--light-gray);
    cursor: pointer;
    transition: var(--transition);
}

.testimonial-dots .dot.active {
    background-color: var(--primary-gold);
    width: 30px;
    border-radius: 6px;
}

/* ===================================
   Contact Section
   =================================== */
.contact {
    padding: var(--section-padding);
    background: linear-gradient(180deg, var(--pale-gold) 0%, var(--light-gold) 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    margin-top: 40px;
}

.contact-info h3 {
    color: var(--primary-gold);
    margin-bottom: 30px;
    font-size: 2rem;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--secondary-gold) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-black);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-item h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.info-item p {
    margin: 0;
    font-size: 0.95rem;
}

.info-item a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.info-item a:hover {
    color: var(--primary-gold);
    transform: translateX(3px);
}

.info-item a:active {
    transform: scale(0.98);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background-color: var(--primary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-black);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-gold);
    transform: translateY(-3px);
}

/* ===================================
   Contact Form
   =================================== */
.contact-form {
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--secondary-black) 100%);
    padding: 40px;
    border-radius: 20px;
    border: 2px solid var(--primary-gold);
    box-shadow: var(--shadow-gold);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--tertiary-black);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--tertiary-black);
    color: var(--white);
}

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

.form-group label {
    position: absolute;
    left: 15px;
    top: 15px;
    color: var(--light-gray);
    transition: var(--transition);
    pointer-events: none;
    background-color: var(--tertiary-black);
    padding: 0 5px;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group select:focus + label,
.form-group select:valid + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    font-size: 0.85rem;
    color: var(--primary-gold);
    background-color: var(--primary-black);
}

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

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

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

.form-group select {
    color: var(--white);
}

.form-group select option {
    background-color: var(--tertiary-black);
    color: var(--white);
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--secondary-black) 100%);
    color: var(--light-gray);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-gold);
    font-family: var(--font-heading);
    margin-bottom: 20px;
}

.footer-logo i {
    font-size: 2rem;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-section p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--light-gray);
}

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

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: var(--light-gray);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-section ul li a:hover {
    color: var(--primary-gold);
    padding-left: 5px;
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid var(--tertiary-black);
    border-radius: 25px 0 0 25px;
    background-color: var(--tertiary-black);
    color: var(--white);
    font-family: var(--font-body);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-gold);
}

.newsletter-form button {
    padding: 12px 20px;
    background-color: var(--primary-gold);
    border: none;
    border-radius: 0 25px 25px 0;
    color: var(--primary-black);
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: var(--secondary-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--tertiary-black);
}

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

.footer-bottom a {
    color: var(--primary-gold);
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: var(--secondary-gold);
}

/* ===================================
   Back to Top Button
   =================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-gold);
    border: none;
    border-radius: 50%;
    color: var(--primary-black);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-gold);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-gold);
    transform: translateY(-5px);
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
}

/* ===================================
   Responsive Design - Enhanced for All Devices
   =================================== */

/* Large Tablets and Small Desktops (1024px and below) */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px 0;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        gap: 40px;
    }
    
    .stat h3 {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .contact-content {
        gap: 40px;
    }
    
    h1 { font-size: 3rem; }
    h2 { font-size: 2.2rem; }
    h3 { font-size: 1.6rem; }
}

/* Tablets (768px and below) */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
        --container-padding: 0 20px;
    }
    
    /* Enhanced Mobile Navigation */
    .navbar {
        padding: 15px 0;
    }
    
    .navbar.scrolled {
        padding: 12px 0;
    }
    
    .menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 40px 20px;
        transition: left 0.4s ease;
        gap: 0;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        width: 100%;
        text-align: center;
        padding: 18px 20px;
        border-bottom: 1px solid var(--tertiary-black);
        font-size: 1.1rem;
    }
    
    .nav-link.cta-btn {
        margin-top: 20px;
        border-radius: 30px;
        border-bottom: none;
    }
    
    /* Hero Section Mobile Optimizations */
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
        line-height: 1.6;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 40px;
    }
    
    .btn {
        padding: 14px 35px;
        font-size: 0.95rem;
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 30px;
        justify-content: space-around;
    }
    
    .stat {
        flex: 1;
        min-width: 120px;
    }
    
    .stat h3 {
        font-size: 2rem;
    }
    
    .stat p {
        font-size: 0.85rem;
    }
    
    /* About Section Mobile */
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .experience-badge {
        width: 120px;
        height: 120px;
        padding: 20px;
        bottom: -15px;
        right: -15px;
    }
    
    .experience-badge h3 {
        font-size: 2rem;
    }
    
    .experience-badge p {
        font-size: 0.75rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    /* Services Grid Mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .service-card {
        padding: 35px 25px;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
    }
    
    .service-icon i {
        font-size: 1.8rem;
    }
    
    /* Team Section Mobile */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .team-info {
        padding: 25px;
    }
    
    /* Testimonials Mobile */
    .testimonials-slider {
        min-height: 400px;
    }
    
    .testimonial-card {
        padding: 35px 25px;
    }
    
    .testimonial-text {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .testimonial-btn {
        width: 40px;
        height: 40px;
    }
    
    /* Contact Section Mobile */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-form {
        padding: 35px 25px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .info-item i {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    /* Footer Mobile */
    .footer {
        padding: 50px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Typography Mobile */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.15rem; }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        margin-bottom: 12px;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Scroll Indicator Mobile */
    .scroll-indicator {
        bottom: 20px;
    }
    
    .mouse {
        width: 22px;
        height: 35px;
    }
    
    /* Back to Top Mobile */
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 1.1rem;
    }
}

/* Small Mobile Devices (480px and below) */
@media (max-width: 480px) {
    :root {
        --section-padding: 50px 0;
        --container-padding: 0 15px;
    }
    
    html {
        font-size: 15px;
    }
    
    /* Navigation */
    .logo {
        font-size: 1.3rem;
    }
    
    .logo i {
        font-size: 1.6rem;
    }
    
    /* Hero Section */
    .hero {
        padding: 90px 0 50px;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 12px;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }
    
    .hero-buttons {
        gap: 12px;
        margin-bottom: 35px;
    }
    
    .btn {
        padding: 13px 30px;
        font-size: 0.9rem;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .stat {
        min-width: 100px;
    }
    
    .stat h3 {
        font-size: 1.8rem;
    }
    
    .stat p {
        font-size: 0.8rem;
    }
    
    /* Image Placeholders */
    .image-placeholder i {
        font-size: 6rem;
    }
    
    .experience-badge {
        width: 100px;
        height: 100px;
        padding: 15px;
        bottom: -10px;
        right: -10px;
    }
    
    .experience-badge h3 {
        font-size: 1.6rem;
    }
    
    .experience-badge p {
        font-size: 0.7rem;
    }
    
    /* Services */
    .service-card {
        padding: 30px 20px;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }
    
    .service-list li {
        font-size: 0.85rem;
    }
    
    /* Team */
    .team-image .image-placeholder i {
        font-size: 5rem;
    }
    
    .team-info {
        padding: 20px;
    }
    
    .team-info h3 {
        font-size: 1.3rem;
    }
    
    /* Testimonials */
    .testimonials-slider {
        min-height: 450px;
    }
    
    .testimonial-card {
        padding: 30px 20px;
    }
    
    .testimonial-text {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }
    
    .author-image {
        width: 50px;
        height: 50px;
    }
    
    .author-image i {
        font-size: 1.3rem;
    }
    
    .testimonial-btn {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
    
    .testimonial-dots .dot {
        width: 10px;
        height: 10px;
    }
    
    .testimonial-dots .dot.active {
        width: 25px;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 30px 20px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 13px;
        font-size: 0.95rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .info-item {
        gap: 15px;
    }
    
    .info-item i {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .info-item h4 {
        font-size: 1rem;
    }
    
    .info-item p {
        font-size: 0.9rem;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-logo {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .footer-logo i {
        font-size: 1.6rem;
    }
    
    .footer-section h3 {
        font-size: 1.15rem;
        margin-bottom: 15px;
    }
    
    .footer-section p,
    .footer-section ul li a {
        font-size: 0.85rem;
    }
    
    .newsletter-form input {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .newsletter-form button {
        padding: 10px 15px;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }
    
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.35rem; }
    h4 { font-size: 1.05rem; }
    
    .section-label {
        font-size: 0.85rem;
        letter-spacing: 1.5px;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    /* Back to Top */
    .back-to-top {
        width: 42px;
        height: 42px;
        bottom: 15px;
        right: 15px;
        font-size: 1rem;
    }
}

/* Extra Small Devices (360px and below) */
@media (max-width: 360px) {
    html {
        font-size: 14px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .container {
        padding: 0 12px;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .stat {
        width: 100%;
    }
    
    .testimonials-slider {
        min-height: 500px;
    }
}

/* Landscape Mobile Devices */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: auto;
        padding: 120px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .hero-buttons {
        margin-bottom: 30px;
    }
    
    .hero-stats {
        flex-direction: row;
        gap: 30px;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* Touch Device Improvements */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .btn {
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .social-links a,
    .testimonial-btn,
    .back-to-top {
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .service-card:hover {
        transform: none;
    }
    
    .team-card:hover {
        transform: none;
    }
    
    /* Active states for better touch feedback */
    .btn:active {
        transform: scale(0.98);
    }
    
    .nav-link:active {
        background-color: rgba(212, 175, 55, 0.1);
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .image-placeholder,
    .service-icon,
    .author-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}
