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

:root {
    /* Color Palette - Centered around #0077b6 */
    --primary-color: #0077b6;           /* Ocean blue - main brand color */
    --primary-dark: #005577;            /* Darker ocean blue for hover states */
    --primary-light: #e6f4f9;           /* Very light blue for backgrounds */
    --secondary-color: #90e0ef;         /* Light sky blue */
    --accent-color: #00b4d8;            /* Bright cyan blue */
    --accent-light: #f0fbff;            /* Very light cyan for sections */
    --text-dark: #003459;               /* Deep blue for headings */
    --text-medium: #2c5f7a;             /* Medium blue-gray for text */
    --text-light: #5a7a8a;              /* Light blue-gray for secondary text */
    --white: #FFFFFF;
    --light-gray: #FAFAFA;
    --border-color: #cae9ff;            /* Light blue border */
    --shadow-color: rgba(0, 119, 182, 0.15); /* Ocean blue shadow */
    
    /* Gold Accents from the Painting */
    --gold-primary: #D4AF37;            /* Rich gold from painting highlights */
    --gold-light: #F4E4BC;              /* Light gold for subtle accents */
    --gold-dark: #B8860B;               /* Darker gold for emphasis */
    --gold-shadow: rgba(212, 175, 55, 0.3); /* Gold shadow effect */
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-padding: 0 20px;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-medium);
    background-color: var(--white);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-semibold);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }

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

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--gold-primary) 50%, var(--primary-color) 100%);
    margin: 1rem auto;
    border-radius: 2px;
    box-shadow: 0 2px 8px var(--gold-shadow);
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

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

.nav-brand h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: var(--font-weight-medium);
    transition: var(--transition);
    position: relative;
}

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

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 3px 0;
    transition: var(--transition);
}

/* Enhanced Hero Section */
.hero {
    position: relative;
    padding: 120px 0 80px;
    background: url('sfondo4.jpg') center center/cover no-repeat;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 52, 89, 0.15) 0%, rgba(0, 119, 182, 0.1) 50%, rgba(0, 180, 216, 0.05) 100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 34, 51, 0.15) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--container-padding);
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: var(--font-weight-medium);
    margin-bottom: 1.5rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 4px 15px var(--shadow-color);
    animation: fadeInUp 0.6s ease-out;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--gold-primary);
}

.hero-text h2 {
    font-size: 3.5rem;
    font-weight: var(--font-weight-semibold);
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    animation: fadeInUp 0.6s ease-out 0.2s both;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.8), 2px 2px 4px rgba(0, 0, 0, 0.6), 0 0 10px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
    font-size: 1.3rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 1);
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out 0.4s both;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 1px 1px 2px rgba(0, 0, 0, 0.6), 0 0 10px rgba(0, 0, 0, 0.4);
    font-weight: 400;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.6s ease-out 0.6s both;
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    backdrop-filter: blur(15px);
    border: 1px solid var(--gold-light);
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateX(5px);
    box-shadow: 0 4px 20px var(--gold-shadow);
    border-color: var(--gold-primary);
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    min-width: 20px;
}

.feature-item span {
    color: var(--text-dark);
    font-weight: var(--font-weight-medium);
    font-size: 0.95rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease-out 0.8s both;
    justify-content: center;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.4rem 3rem;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: var(--font-weight-semibold);
    font-size: 1.1rem;
    transition: var(--transition);
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
    min-width: 220px;
    text-shadow: none;
    backdrop-filter: blur(10px);
}

.cta-button i {
    margin-right: 0.8rem;
    font-size: 1.1rem;
}

.cta-button::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: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 8px 25px rgba(0, 119, 182, 0.4), 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 119, 182, 0.5), 0 6px 20px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    border: 3px solid var(--primary-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2), 0 4px 15px rgba(255, 255, 255, 0.3);
}

.cta-button.secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 119, 182, 0.4), 0 6px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--white);
}

.hero-image {
    position: relative;
    text-align: center;
    animation: fadeInRight 0.8s ease-out 0.4s both;
}

.image-container {
    position: relative;
    display: inline-block;
}

.profile-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.profile-image:hover {
    transform: scale(1.02);
}

.image-decoration {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    opacity: 0.4;
    animation: rotate 20s linear infinite;
    z-index: 1;
}

.floating-card {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 200px;
    animation: float 3s ease-in-out infinite;
    z-index: 3;
}

.card-content i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card-content p {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-style: italic;
    margin: 0;
    line-height: 1.4;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-arrow {
    width: 40px;
    height: 40px;
    border: 2px solid var(--gold-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    cursor: pointer;
    transition: var(--transition);
    animation: bounce 2s infinite;
    box-shadow: 0 4px 15px var(--gold-shadow);
}

.scroll-arrow:hover {
    background: var(--gold-primary);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 6px 20px var(--gold-shadow);
}

.scroll-arrow i {
    color: var(--gold-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.scroll-arrow:hover i {
    color: var(--white);
}

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

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

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

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

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

/* About Section */
.about {
    padding: var(--section-padding);
    background-color: var(--accent-light);
}

/* Wider container only for the About (Chi sono) section */
.about .container {
    max-width: 1500px;
}

.about-content {
    display: grid;
    grid-template-columns: 0.9fr 2.8fr 1.1fr;
    gap: 2.5rem;
    margin-top: 2rem;
    align-items: start;
}

.about-image {
    position: relative;
    text-align: center;
}

.about-image .image-container {
    position: relative;
    display: inline-block;
}

.about-image .profile-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.about-image .profile-image:hover {
    transform: scale(1.02);
}

.about-image .image-decoration {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    opacity: 0.4;
    animation: rotate 20s linear infinite;
    z-index: 1;
}

.about-image .floating-card {
    position: absolute;
    bottom: -15px;
    right: -15px;
    background: var(--white);
    padding: 1.2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 180px;
    animation: float 3s ease-in-out infinite;
    z-index: 3;
}

.about-image .card-content i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.about-image .card-content p {
    font-size: 0.85rem;
    color: var(--text-dark);
    font-style: italic;
    margin: 0;
    line-height: 1.4;
}

.about-text p {
    font-size: 1.15rem;
    margin-bottom: 1.2rem;
    line-height: 1.8;
}

.about-mini-card .mini-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.25rem 1.25rem 1rem;
    box-shadow: 0 4px 18px rgba(0, 119, 182, 0.08);
    position: sticky;
    top: 100px;
}

.about-mini-card h3 {
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.about-mini-card ul {
    list-style: none;
    padding-left: 0;
    margin: 0 0 0.75rem 0;
}

.about-mini-card li {
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
}

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

.mini-card-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
}

.mini-card-link:hover {
    text-decoration: underline;
}

.about-text h3 {
    color: var(--text-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Creative layout for About section */
.about-intro {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.75rem 2rem;
    box-shadow: 0 6px 20px rgba(0, 119, 182, 0.06);
    margin-bottom: 2rem;
}

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

.highlight-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem 1.5rem 1.25rem;
    box-shadow: 0 6px 24px rgba(0, 119, 182, 0.08);
    position: relative;
    overflow: hidden;
}

.highlight-card::after {
    content: '';
    position: absolute;
    right: -30px;
    top: -30px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle at center, var(--primary-light), transparent 70%);
    opacity: 0.7;
}

.highlight-icon { display: none; }

.pill-list {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pill {
    display: inline-block;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--text-dark);
    background: var(--primary-light);
    border: 1px solid var(--border-color);
}

/* Highlights Section - compact horizontal cards */
.highlights {
    padding: 40px 0 20px;
    background: var(--white);
}

.highlights-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

/* Ensure cards equal height */
.highlights-row .highlight.compact {
    height: 100%;
}

/* Article page cover */
.article-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: 0 6px 24px rgba(0, 119, 182, 0.08);
    padding: 1.25rem 1.5rem;
}

.article-cover img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.highlight.compact {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 119, 182, 0.07);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.highlight.compact:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 119, 182, 0.12);
    border-color: var(--gold-primary);
}

.highlight.compact .highlight-content {
    display: flex;
    flex: 1 1 auto;
    padding: 1rem 1.25rem 1.1rem;
    gap: 0.6rem;
    flex-direction: column;
}

.highlight.compact h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.15rem;
}

.highlight.compact p {
    margin-bottom: 0.5rem;
    font-size: 0.98rem;
    line-height: 1.55;
}

.highlight-image {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

/* Space control before Services after compact row */
.highlights + .cv-section,
.highlights + .services {
    margin-top: 0;
}

@media (max-width: 1024px) {
    .highlights-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .highlights {
        padding: 30px 0 20px;
    }
    
    .highlights-row {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 16px;
    }
    
    .highlight.compact {
        margin-bottom: 1.5rem;
        border-radius: 16px;
        box-shadow: 0 6px 20px rgba(0, 119, 182, 0.08);
    }
    
    .highlight.compact .highlight-content {
        padding: 2rem 1.5rem;
    }
    
    .highlight.compact h3 {
        font-size: 1.3rem;
        line-height: 1.4;
        margin-bottom: 1rem;
        color: var(--text-dark);
    }
    
    .highlight.compact p {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 1rem;
        color: var(--text-medium);
    }
    
    .highlight-image {
        height: 220px;
        object-fit: cover;
        border-radius: 12px 12px 0 0;
    }
    
    .read-more-button {
        margin-top: 1.5rem;
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        border-radius: 10px;
        font-weight: 500;
    }
    
    .pill-list {
        margin-top: 1rem;
        flex-wrap: wrap;
        gap: 0.6rem;
    }
    
    .pill {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
        border-radius: 20px;
    }
}

.read-more-button {
    display: inline-block;
    margin-top: auto;
    padding: 0.55rem 0.9rem;
    border-radius: 8px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: var(--transition);
}

.read-more-button:hover {
    background: var(--primary-color);
    color: var(--white);
}

.about-credentials {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    height: fit-content;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 119, 182, 0.08);
    grid-column: 1 / -1;
    margin-top: 0.5rem;
}

.about-credentials h3 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.about-credentials ul {
    list-style: none;
    columns: 2;
    -webkit-columns: 2;
    -moz-columns: 2;
    column-gap: 2rem;
}

.about-credentials li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
    break-inside: avoid;
}

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

.about-credentials li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Services Section */
.cv-section {
    padding: var(--section-padding);
    background-color: var(--primary-light);
}

.cv-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: 0 6px 24px rgba(0, 119, 182, 0.08);
    padding: 2rem;
}

.cv-list {
    list-style: none;
    columns: 2;
    -webkit-columns: 2;
    -moz-columns: 2;
    column-gap: 2rem;
}

.cv-list li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
    break-inside: avoid;
}

.cv-list li:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .cv-list {
        columns: 1;
        -webkit-columns: 1;
        -moz-columns: 1;
    }
}
.services {
    padding: var(--section-padding);
    background-color: var(--primary-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 119, 182, 0.08);
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 119, 182, 0.15), 0 2px 8px var(--gold-shadow);
    border-color: var(--gold-primary);
}

.service-icon {
    width: 200px;
    height: 200px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    padding: 1rem;
    box-shadow: 0 8px 20px rgba(0, 119, 182, 0.15);
}

/* Slightly larger image for the second Services card (Psicoterapia dinamica) */
.services-grid .service-card:nth-child(2) .service-icon {
    width: 220px;
    height: 220px;
    padding: 1rem;
}

.services-grid .service-card:nth-child(2) .service-image {
    width: 180px;
    height: 180px;
    max-width: 180px;
    max-height: 180px;
}

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

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

.service-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
    filter: none;
    border-radius: 8px;
    background-color: transparent;
    max-width: 160px;
    max-height: 160px;
}

.service-card:hover .service-image {
    transform: scale(1.05);
    filter: none;
}

.service-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
}

/* Contact Section */
.contact {
    padding: var(--section-padding);
    background-color: var(--accent-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: var(--white);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 119, 182, 0.06);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    margin-top: 0.2rem;
    min-width: 30px;
    text-shadow: 0 0 10px var(--gold-shadow);
}

.contact-item h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* Contact Form */
.contact-form-container {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 119, 182, 0.08);
}

.contact-form-container h3 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

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

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--shadow-color);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-group label {
    color: var(--text-light);
    font-size: 0.9rem;
    cursor: pointer;
}

.submit-button {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.submit-button:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--accent-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 119, 182, 0.2);
}

/* Map */
.map-container {
    margin-top: 3rem;
}

.map-container h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.map-placeholder {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--text-dark) 0%, #001f2e 100%);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-info h3,
.footer-contact h4,
.footer-social h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-info p,
.footer-contact p {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.footer-contact i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    color: var(--secondary-color);
}

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

.footer-bottom a:hover {
    text-decoration: underline;
    color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --section-padding: 50px 0;
        --container-padding: 0 16px;
    }
    
    /* Improved Mobile Navigation */
    .nav {
        padding: 0.8rem 16px;
        backdrop-filter: blur(10px);
        background-color: rgba(255, 255, 255, 0.95);
    }
    
    .nav-brand h1 {
        font-size: 1.1rem;
        line-height: 1.2;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 65px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: all 0.3s ease;
        box-shadow: 0 10px 27px rgba(0,0,0,0.15);
        padding: 1.5rem 0;
        z-index: 999;
        border-top: 1px solid var(--border-color);
    }
    
    .nav-menu.active {
        left: 0;
        animation: slideInFromLeft 0.3s ease;
    }
    
    .nav-link {
        padding: 1.2rem 0;
        font-size: 1.1rem;
        display: block;
        width: 100%;
        border-bottom: 1px solid var(--border-color);
        transition: all 0.2s ease;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .nav-link:hover {
        background-color: var(--primary-light);
        color: var(--primary-color);
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001;
        padding: 0.5rem;
        border-radius: 4px;
        transition: background-color 0.2s ease;
    }
    
    .nav-toggle:hover {
        background-color: var(--primary-light);
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    @keyframes slideInFromLeft {
        from {
            transform: translateX(-100%);
            opacity: 0;
        }
        to {
            transform: translateX(0);
            opacity: 1;
        }
    }
    
    /* Mobile Hero Section */
    .hero {
        padding: 90px 0 50px;
        min-height: 100vh;
        background-attachment: scroll; /* Better performance on mobile */
    }
    
    .hero-content {
        max-width: 100%;
        padding: 0 16px;
    }
    
    .hero-text h2 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
        line-height: 1.1;
        word-wrap: break-word;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
        color: rgba(255, 255, 255, 1);
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 1px 1px 2px rgba(0, 0, 0, 0.6);
        font-weight: 400;
    }
    
    .hero-features {
        margin-bottom: 2rem;
        gap: 0.8rem;
    }
    
    .feature-item {
        padding: 0.8rem 1rem;
        flex-direction: row;
        text-align: left;
        border-radius: 10px;
    }
    
    .feature-item i {
        font-size: 1.1rem;
        min-width: 24px;
        margin-right: 0.8rem;
    }
    
    .feature-item span {
        font-size: 0.9rem;
        flex: 1;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-top: 1rem;
    }
    
    .cta-button {
        padding: 1.2rem 2.5rem;
        font-size: 1rem;
        min-width: 200px;
        width: 100%;
        max-width: 280px;
        margin-bottom: 0.5rem;
        border-radius: 12px;
    }
    
    .hero-scroll-indicator {
        bottom: 1rem;
    }
    
    /* Mobile About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .about-image {
        order: 1;
    }
    
    .about-text {
        order: 2;
    }
    
    .about-credentials {
        order: 3;
        padding: 1.5rem;
        margin-top: 1rem;
    }
    
    .about-image .profile-image {
        max-width: 280px;
    }
    
    .about-image .floating-card {
        position: static;
        margin-top: 1.5rem;
        max-width: 250px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .about-image .image-decoration {
        top: -10px;
        left: -10px;
        right: -10px;
        bottom: -10px;
    }
    
    .about-text p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .about-intro {
        column-count: 1;
        column-gap: 0;
    }

    .about-mini-card .mini-card {
        position: static;
    }
    
    .about-highlights {
        grid-template-columns: 1fr;
    }
    
    .about-credentials li {
        padding: 0.8rem 0;
        font-size: 0.95rem;
    }
    
    /* Mobile Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 16px;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
        margin: 0;
        border-radius: 16px;
        box-shadow: 0 6px 25px rgba(0, 119, 182, 0.1);
        transition: all 0.3s ease;
    }
    
    .service-card:active {
        transform: scale(0.98);
    }
    
    .service-icon {
        width: 160px;
        height: 160px;
        margin-bottom: 1.5rem;
        border-radius: 50%;
        overflow: hidden;
        box-shadow: 0 8px 20px rgba(0, 119, 182, 0.15);
        background-color: var(--white);
        padding: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .services-grid .service-card:nth-child(2) .service-icon {
        width: 170px;
        height: 170px;
    }

    .services-grid .service-card:nth-child(2) .service-image {
        width: 150px;
        height: 150px;
    }
    
    .service-image {
        width: 100%;
        height: 100%;
        object-fit: contain;
        transition: transform 0.3s ease;
        background-color: transparent;
        border-radius: 8px;
        max-width: 120px;
        max-height: 120px;
    }
    
    .service-card:hover .service-image {
        transform: scale(1.05);
    }
    
    .service-icon i {
        font-size: 1.8rem;
    }
    
    .service-card h3 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
        line-height: 1.3;
        text-align: center;
    }
    
    .service-card p {
        font-size: 1rem;
        line-height: 1.6;
        text-align: center;
        color: var(--text-light);
    }
    
    /* Mobile Contact Section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .contact-item {
        padding: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-item i {
        font-size: 1.3rem;
        min-width: 25px;
    }
    
    .contact-item h4 {
        font-size: 1.1rem;
    }
    
    .contact-item p {
        font-size: 0.95rem;
    }
    
    /* Mobile Form */
    .contact-form-container {
        padding: 2rem 1.5rem;
        border-radius: 16px;
        box-shadow: 0 8px 30px rgba(0, 119, 182, 0.1);
    }
    
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 1.2rem 1rem;
        font-size: 1rem;
        border-radius: 12px;
        border: 2px solid var(--border-color);
        min-height: 52px;
        transition: all 0.3s ease;
        background-color: var(--white);
    }
    
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
        outline: none;
    }
    
    .form-group textarea {
        min-height: 120px;
        resize: vertical;
    }
    
    .submit-button {
        padding: 1.3rem 2rem;
        font-size: 1.1rem;
        min-height: 52px;
        border-radius: 12px;
        font-weight: 600;
        width: 100%;
        transition: all 0.3s ease;
    }
    
    .submit-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 119, 182, 0.25);
    }
    
    .checkbox-group {
        margin-top: 1.5rem;
        padding: 1rem;
        background-color: var(--primary-light);
        border-radius: 12px;
        border: 1px solid var(--border-color);
    }
    
    .checkbox-group input[type="checkbox"] {
        min-width: 20px;
        min-height: 20px;
        margin-right: 0.8rem;
    }
    
    .checkbox-group label {
        font-size: 0.95rem;
        line-height: 1.5;
        color: var(--text-dark);
    }
    
    .checkbox-group {
        align-items: flex-start;
        gap: 0.8rem;
    }
    
    .checkbox-group input[type="checkbox"] {
        min-width: 18px;
        min-height: 18px;
        margin-top: 0.2rem;
    }
    
    .checkbox-group label {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* Mobile Map */
    .map-container {
        margin-top: 2rem;
    }
    
    .map-placeholder iframe {
        height: 250px;
    }
    
    /* Mobile Footer */
    .footer {
        padding: 2.5rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-info,
    .footer-contact,
    .footer-social {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
        gap: 1.2rem;
    }
    
    .social-links a {
        width: 45px;
        height: 45px;
    }
    
    .footer-bottom {
        padding-top: 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Typography adjustments for mobile */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.2rem; }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2.5rem;
    }
    
    .section-title::after {
        width: 50px;
        height: 2px;
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: 0 12px;
    }
    
    .container {
        padding: 0 12px;
    }
    
    .nav {
        padding: 1rem 12px;
    }
    
    .nav-brand h1 {
        font-size: 1.1rem;
    }
    
    .hero {
        padding: 80px 0 40px;
    }
    
    .hero-content {
        gap: 2rem;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1.2rem;
    }
    
    .hero-text h2 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .feature-item {
        padding: 0.6rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .feature-item i {
        font-size: 1.5rem;
    }
    
    .cta-button {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .profile-image {
        max-width: 240px;
    }
    
    .floating-card {
        padding: 1rem;
        max-width: 200px;
    }
    
    .card-content p {
        font-size: 0.8rem;
    }
    
    .service-card {
        padding: 1.5rem 1rem;
    }
    
    .service-icon {
        width: 140px;
        height: 140px;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    .contact-form-container {
        padding: 1.2rem;
    }
    
    .contact-item {
        padding: 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 1rem;
    }
    
    .map-placeholder iframe {
        height: 200px;
    }
    
    /* Smaller typography for very small screens */
    .hero-text h2 {
        font-size: 1.7rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    h3 { font-size: 1.3rem; }
    h4 { font-size: 1.1rem; }
}

/* Landscape orientation for small devices */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 80px 0 40px;
    }
    
    .hero-content {
        gap: 2rem;
    }
    
    .hero-text h2 {
        font-size: 2rem;
    }
    
    .profile-image {
        max-width: 200px;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .nav-link {
        padding: 1rem;
    }
    
    .cta-button {
        min-height: 48px;
    }
    
    .service-card {
        transition: none;
    }
    
    .service-card:active {
        transform: scale(0.98);
    }
    
    .social-links a {
        min-height: 44px;
        min-width: 44px;
    }
}

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

/* Improved accessibility for mobile */
@media (max-width: 768px) {
    /* Better focus states for mobile */
    .nav-link:focus,
    .cta-button:focus,
    .submit-button:focus,
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        outline: 3px solid var(--primary-color);
        outline-offset: 2px;
    }
    
    /* Ensure minimum contrast ratios */
    .nav-link {
        color: var(--text-dark);
    }
    
    .hero-text p,
    .about-text p,
    .service-card p {
        color: #555555; /* Slightly darker for better mobile readability */
    }
}

/* Prevent zoom on input focus for iOS */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    select,
    textarea,
    input[type="text"],
    input[type="email"],
    input[type="tel"] {
        font-size: 16px;
    }
}

/* Mobile Performance Optimizations */
@media (max-width: 768px) {
    /* Reduce animations on mobile for better performance */
    .hero-badge,
    .hero-text h2,
    .hero-subtitle,
    .hero-features,
    .hero-buttons {
        animation: none;
    }
    
    /* Optimize images for mobile */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Better touch targets */
    .nav-link,
    .cta-button,
    .submit-button,
    .read-more-button {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Improve scrolling performance */
    .hero,
    .about,
    .highlights,
    .services,
    .contact {
        -webkit-overflow-scrolling: touch;
        transform: translateZ(0);
    }
    
    /* Better text rendering on mobile */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
} 