/* Theme Variables */
:root {
    --bg-primary: #FBFBFD;
    --bg-secondary: #F5F5F7;
    --text-primary: #1D1D1F;
    --text-secondary: #86868B;
    --accent-primary: #0066CC;
    --accent-secondary: #0071E3;
    --card-bg: rgba(255, 255, 255, 0.7);
    --nav-bg: rgba(255, 255, 255, 0.8);
    --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Font Declarations */
/* SF Pro Display - Used for headings */
@font-face {
    font-family: 'SF Pro Display';
    src: local('SF Pro Display'),
         url('fonts/SFProDisplay-Regular.woff2') format('woff2'),
         url('fonts/SFProDisplay-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: local('SF Pro Display Medium'),
         url('fonts/SFProDisplay-Medium.woff2') format('woff2'),
         url('fonts/SFProDisplay-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: local('SF Pro Display Semibold'),
         url('fonts/SFProDisplay-Semibold.woff2') format('woff2'),
         url('fonts/SFProDisplay-Semibold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: local('SF Pro Display Bold'),
         url('fonts/SFProDisplay-Bold.woff2') format('woff2'),
         url('fonts/SFProDisplay-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* SF Pro Text - Used for body text */
@font-face {
    font-family: 'SF Pro Text';
    src: local('SF Pro Text'),
         url('fonts/SFProText-Regular.woff2') format('woff2'),
         url('fonts/SFProText-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Text';
    src: local('SF Pro Text Medium'),
         url('fonts/SFProText-Medium.woff2') format('woff2'),
         url('fonts/SFProText-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Text';
    src: local('SF Pro Text Semibold'),
         url('fonts/SFProText-Semibold.woff2') format('woff2'),
         url('fonts/SFProText-Semibold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* SF Rounded - Used for special elements */
@font-face {
    font-family: 'SF Rounded';
    src: url('fonts/SFRounded-Regular.woff2') format('woff2'),
         url('fonts/SFRounded-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Rounded';
    src: url('fonts/SFRounded-Medium.woff2') format('woff2'),
         url('fonts/SFRounded-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Rounded';
    src: url('fonts/SFRounded-Semibold.woff2') format('woff2'),
         url('fonts/SFRounded-Semibold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.47059;
    transition: background-color 0.3s ease;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .hero-title, .section-header h2 {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
}

.cta-button {
    font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 500;
}

/* Navigation */
.nav-global {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 44px;
    background-color: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9999;
    font-size: 12px;
    letter-spacing: -0.01em;
    transform: translateY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-content {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 22px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 48px;
    position: relative;
}

.nav-logo {
    text-decoration: none;
    position: relative;
    z-index: 2;
}

.logo-text {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
    padding: 0;
    height: 100%;
    flex: 1;
    justify-content: center;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    height: 100%;
    transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 12px;
    letter-spacing: -0.01em;
}

.nav-menu a:hover {
    color: var(--text-primary);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 24px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, var(--accent-primary) 0%, transparent 70%);
    opacity: 0.1;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
}

.hero-title {
    font-size: 80px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 24px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    letter-spacing: -0.02em;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Project Section */
.projects-section {
    padding: 120px 24px;
    background-color: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: 48px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 20px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--card-shadow);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
    transform: translateY(-8px);
}

.project-content {
    padding: 32px;
}

.project-category {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-primary);
    margin-bottom: 16px;
    display: block;
}

.project-tech {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.project-tech span {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 100px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

/* Skills Section */
.skills-section {
    padding: 120px 24px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-card {
    background: var(--card-bg);
    padding: 32px;
    border-radius: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--card-shadow);
}

.skill-card h3 {
    font-size: 24px;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.skill-card ul {
    list-style: none;
}

.skill-card li {
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-size: 17px;
}

/* Photography Page Styles */
.photography-hero {
    min-height: 60vh;
    background: var(--bg-secondary);
}

.photography-hero .hero-background {
    background: radial-gradient(circle at top right, var(--accent-primary) 0%, transparent 70%);
    opacity: 0.1;
}

.photography-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-primary);
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.photo-item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 20px;
    cursor: zoom-in;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.photo-item:hover {
    transform: scale(1.02);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.photo-item:hover img {
    transform: scale(1.05);
}

.photography-about {
    padding: 120px 24px;
    background-color: var(--bg-secondary);
}

.photography-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    align-items: start;
}

.photography-text {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
}

.photography-text p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 24px;
}

.photography-text p:last-child {
    margin-bottom: 0;
}

.photography-equipment {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    position: sticky;
    top: 100px;
}

.photography-equipment h3 {
    color: var(--text-primary);
    font-size: 24px;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.photography-equipment ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.photography-equipment li {
    color: var(--text-secondary);
    margin-bottom: 16px;
    padding-left: 24px;
    position: relative;
    font-size: 16px;
}

.photography-equipment li:before {
    content: "•";
    position: absolute;
    left: 8px;
    color: var(--accent-primary);
}

/* Photo Modal Styles */
.photo-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
}

.photo-modal.active {
    display: flex;
}

.photo-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-modal.active .photo-modal-backdrop {
    opacity: 1;
}

.photo-modal-img {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.photo-modal.active .photo-modal-img {
    opacity: 1;
    transform: scale(1);
}

.photo-modal-close {
    position: absolute;
    top: 32px;
    right: 32px;
    z-index: 3;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.photo-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .photography-section,
    .photography-about {
        padding: 60px 24px;
    }

    .photo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .photography-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .photography-text,
    .photography-equipment {
        padding: 32px 24px;
    }

    .photography-equipment {
        position: static;
    }

    .photo-modal-img {
        max-width: 95vw;
        max-height: 70vh;
    }

    .photo-modal-close {
        top: 16px;
        right: 16px;
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .photography-section,
    .photography-about {
        padding: 40px 16px;
    }

    .photo-grid {
        gap: 16px;
    }

    .photo-item {
        border-radius: 16px;
    }

    .photography-text,
    .photography-equipment {
        padding: 24px 20px;
    }

    .photography-text p {
        font-size: 15px;
        line-height: 1.7;
    }

    .photography-equipment h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .photography-equipment li {
        font-size: 15px;
        margin-bottom: 12px;
    }
}

/* Contact Page Styles */
.contact-hero {
    min-height: 60vh;
    padding: 120px 24px 60px;
    background-color: var(--bg-primary);
}

.contact-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-primary);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.contact-info {
    background: var(--card-bg);
    padding: 32px;
    border-radius: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--card-shadow);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-method h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.contact-method a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 16px;
    display: block;
    margin-bottom: 8px;
}

.contact-method a:hover {
    color: var(--accent-secondary);
}

.contact-method p {
    color: var(--text-secondary);
    font-size: 16px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-form {
    background: var(--card-bg);
    padding: 32px;
    border-radius: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--bg-secondary);
    border-radius: 12px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: var(--accent-primary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.contact-form .cta-button {
    width: 100%;
    padding: 14px 32px;
    font-size: 16px;
    margin-top: 8px;
}

/* Buttons */
.cta-button {
    padding: 12px 32px;
    border-radius: 100px;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.cta-button.primary {
    background-color: var(--accent-primary);
    color: white;
}

.cta-button.primary:hover {
    background-color: var(--accent-secondary);
    transform: scale(1.02);
}

.cta-button.secondary {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.cta-button.secondary:hover {
    background-color: var(--card-bg);
    transform: scale(1.02);
}

/* Footer */
.footer {
    background-color: var(--bg-secondary);
    padding: 80px 24px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 48px;
}

.footer-section h5 {
    font-size: 18px;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 48px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .section-header h2 {
        font-size: 36px;
    }
}

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

.hero-title,
.hero-subtitle,
.hero-cta {
    opacity: 0;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-subtitle {
    animation-delay: 0.1s;
}

.hero-cta {
    animation-delay: 0.2s;
}

/* Mobile and Tablet Optimizations */
@media (max-width: 834px) {
    /* Navigation */
    .nav-menu {
        display: none;
    }

    /* Show nav menu when active */
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 44px;
        left: 0;
        width: 100%;
        background: var(--nav-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 16px;
        gap: 16px;
    }

    .nav-menu a {
        font-size: 17px;
        padding: 12px 16px;
        width: 100%;
        border-radius: 10px;
    }

    .nav-menu a:hover {
        background: var(--bg-secondary);
    }

    /* Add hamburger menu */
    .nav-utils {
        display: flex;
        gap: 16px;
    }

    .menu-toggle {
        display: none; /* Hidden by default */
        position: relative;
        transition: transform 0.3s ease;
    }

    .menu-toggle svg {
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    /* Create X animation */
    .menu-toggle.active {
        transform: rotate(180deg);
    }

    .menu-toggle.active svg path {
        stroke-dasharray: 24;
        stroke-dashoffset: 0;
        transition: stroke-dasharray 0.3s ease, stroke-dashoffset 0.3s ease;
    }

    .menu-toggle:active {
        transform: scale(0.95); /* Slight scale down when pressed */
    }

    /* Hero Section */
    .hero-section {
        padding: 100px 20px 60px;
        min-height: 80vh;
    }

    .hero-title {
        font-size: 40px;
        margin-bottom: 16px;
    }

    .hero-subtitle {
        font-size: 18px;
        margin-bottom: 32px;
    }

    .hero-cta {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .cta-button {
        width: 100%;
    }

    /* Projects Section */
    .projects-section {
        padding: 60px 20px;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .section-header p {
        font-size: 17px;
    }

    .project-grid {
        gap: 20px;
    }

    .project-card {
        border-radius: 16px;
    }

    .project-content {
        padding: 24px;
    }

    /* Skills Section */
    .skills-section {
        padding: 60px 20px;
    }

    .skills-grid {
        gap: 20px;
    }

    .skill-card {
        padding: 24px;
        border-radius: 16px;
    }

    /* Photography Section */
    .photography-section {
        padding: 60px 20px;
    }

    .photo-grid {
        gap: 16px;
    }

    .photo-item {
        border-radius: 16px;
    }

    /* Contact Section */
    .contact-section {
        padding: 60px 20px;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .contact-info,
    .contact-form {
        padding: 24px;
    }
    
    .contact-method h3 {
        font-size: 16px;
    }
    
    .contact-method a,
    .contact-method p {
        font-size: 14px;
    }

    .theme-toggle-mobile {
        display: block; /* Show in mobile menu */
    }
    
    .theme-toggle-mobile .theme-toggle {
        width: 100%;
        padding: 12px 16px;
        justify-content: flex-start;
        font-size: 17px;
        border-radius: 10px;
    }
    
    /* Hide desktop theme toggle */
    .nav-utils .theme-toggle {
        display: none;
    }
    
    .theme-toggle span {
        display: inline; /* Show text label on mobile */
    }
}

/* Desktop styles */
@media (min-width: 835px) {
    .theme-toggle span {
        display: none; /* Hide text label on desktop */
    }
}

/* iPhone SE and smaller devices */
@media (max-width: 375px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .about-bio h2 {
        font-size: 18px;
    }

    .about-details h3 {
        font-size: 16px;
    }

    .cta-button {
        font-size: 15px;
        padding: 12px 0;
    }
}

/* iPad Pro and larger tablets */
@media (min-width: 835px) and (max-width: 1024px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Safe area insets for modern iOS devices */
@supports (padding: max(0px)) {
    .nav-global {
        padding-left: max(22px, env(safe-area-inset-left));
        padding-right: max(22px, env(safe-area-inset-right));
        padding-top: max(0px, env(safe-area-inset-top));
    }

    .nav-menu.active {
        padding-bottom: max(16px, env(safe-area-inset-bottom));
    }

    .footer {
        padding-bottom: max(24px, env(safe-area-inset-bottom));
    }
}

/* Hover states for touch devices */
@media (hover: none) {
    .project-card:hover,
    .skill-card:hover,
    .photo-item:hover {
        transform: none;
    }

    .nav-menu a:active {
        opacity: 0.7;
    }
}

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

/* Add body styles for when menu is open */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Ensure the menu takes full height of the screen */
@media (max-width: 834px) {
    .nav-menu.active {
        height: calc(100vh - 44px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Hamburger Menu Styles */
.menu-toggle {
    display: none;
    border: none;
    background: none;
    padding: 8px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.hamburger {
    width: 24px;
    height: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transform-origin: center;
    transition: transform 0.3s ease,
                opacity 0.2s ease;
}

@media (max-width: 834px) {
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Animated X transformation */
    .menu-toggle.active .line1 {
        transform: translateY(9px) rotate(45deg);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .menu-toggle.active .line2 {
        opacity: 0;
        transition: opacity 0.2s ease;
    }

    .menu-toggle.active .line3 {
        transform: translateY(-9px) rotate(-45deg);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Menu slide animation */
    .nav-menu {
        transform: translateY(-100%);
        opacity: 0;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.2s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.2s ease;
    }
}

/* Ensure menu is visible when active */
.nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* Responsive Design for Contact Page */
@media (max-width: 768px) {
.contact-hero {
        min-height: 40vh;
        padding: 100px 20px 40px;
}

.contact-section {
        padding: 60px 20px;
}

.contact-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-info,
    .contact-form {
        padding: 24px;
    }

    .contact-method h3 {
        font-size: 16px;
    }

    .contact-method a,
    .contact-method p {
        font-size: 14px;
    }
}

/* Education Section (reinforced) */
.education-section {
    padding: 120px 24px;
    background-color: var(--bg-primary);
    text-align: center;
}

.education-container {
    max-width: 600px;
    margin: 0 auto;
}

.education-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 32px;
    margin: 0 auto;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.education-content h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    font-weight: 600;
}

.school-link {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 600;
}

.school-link:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

.education-program {
    font-size: 18px;
    color: var(--accent-primary);
    margin-bottom: 16px;
    font-weight: 500;
}

.education-description {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.education-details {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.education-status,
.education-location,
.education-year {
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 100px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.education-year {
    background: var(--accent-primary);
    color: white;
}

@media (max-width: 768px) {
    .education-section {
        padding: 60px 20px;
    }
    .education-card {
        padding: 20px;
    }
    .education-content h3 {
        font-size: 20px;
    }
    .education-program {
        font-size: 16px;
    }
    .education-description {
        font-size: 15px;
    }
}

/* About Me Page Styles */
.about-hero {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    padding: 100px 24px 40px;
    text-align: center;
}

.about-hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.about-section {
    padding: 80px 24px;
    background: var(--bg-primary);
}

.about-container {
    display: flex;
    gap: 48px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
}

.about-bio {
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    padding: 40px 32px;
    flex: 2 1 340px;
    min-width: 300px;
    margin-bottom: 24px;
    text-align: left;
}

.about-bio h2 {
    font-size: 28px;
    margin-bottom: 18px;
    color: var(--text-primary);
}

.about-bio p {
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 18px;
}

.about-details {
    margin-top: 32px;
    margin-bottom: 40px;
    padding: 36px 28px;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    min-width: 260px;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.about-details h3 {
    font-size: 22px;
    margin-bottom: 18px;
    color: var(--accent-primary);
}

.about-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-details li {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.5;
}

.about-details strong {
    color: var(--text-primary);
    font-weight: 600;
}

@media (max-width: 900px) {
    .about-container {
        flex-direction: column;
        gap: 32px;
        align-items: stretch;
    }
    .about-bio, .about-details {
        padding: 32px 18px;
    }
}

@media (max-width: 600px) {
    .about-hero {
        padding: 60px 10px 24px;
    }
    .about-section {
        padding: 32px 8px;
    }
    .about-bio, .about-details {
        padding: 18px 8px;
    }
    .about-bio h2 {
        font-size: 22px;
    }
    .about-details h3 {
        font-size: 18px;
    }
}

.about-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary) 40%, var(--accent-secondary) 60%, transparent);
    margin: 32px 0;
    border: none;
    opacity: 0.3;
}

.about-profile-photo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    margin: 0 auto 24px auto;
    display: block;
    border: 4px solid var(--bg-primary);
    background: var(--bg-secondary);
}

.quick-facts-list.vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-facts-list.vertical li {
    display: flex;
    align-items: center;
    font-size: 16px;
    color: var(--text-secondary);
    background: none;
    border-radius: 0;
    padding: 0 0 0 0;
    box-shadow: none;
    font-weight: 500;
    border-bottom: 1px solid var(--bg-secondary);
    min-height: 36px;
}

.quick-facts-list.vertical li:last-child {
    border-bottom: none;
}

.fact-icon {
    font-size: 20px;
    margin-right: 14px;
    flex-shrink: 0;
}

@media (max-width: 700px) {
    .about-details {
        padding: 20px 10px;
        max-width: 100%;
    }
    .quick-facts-list.vertical li {
        font-size: 15px;
        min-height: 30px;
    }
}

/* Badges & Certifications Section */
.badges-section {
    padding: 80px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.badges-section .section-header {
    text-align: center;
    margin-bottom: 48px;
}

.badges-section .section-header h2 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.badges-section .section-header p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.badge-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.badge-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.badge-card > div[data-iframe-width] {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 270px;
}

.badge-info {
    text-align: center;
    width: 100%;
}

.badge-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.badge-info p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
}

@media (max-width: 768px) {
    .badges-section {
        padding: 60px 24px;
    }
    
    .badges-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 24px;
        margin-top: 32px;
    }
    
    .badge-card {
        padding: 20px;
    }
    
    .badge-card > div[data-iframe-width] {
        min-height: 240px;
    }
    
    .badge-info h3 {
        font-size: 16px;
    }
    
    .badge-info p {
        font-size: 13px;
    }
}

/* Homepage Contact Call-to-Action */
#contact.contact-section {
    background: var(--bg-primary);
    padding: 100px 24px 120px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-content {
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    padding: 48px 32px 40px 32px;
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.contact-content h2 {
    font-size: 36px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.contact-content p {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 24px;
}

.contact-content .cta-button {
    width: 100%;
    max-width: 320px;
    font-size: 18px;
    padding: 16px 0;
    margin: 0 auto;
    margin-top: 8px;
    border-radius: 100px;
    box-shadow: 0 2px 12px rgba(0,102,204,0.08);
}

@media (max-width: 700px) {
    #contact.contact-section {
        padding: 48px 8px 64px 8px;
    }
    .contact-content {
        padding: 28px 8px 24px 8px;
        max-width: 100%;
    }
    .contact-content h2 {
        font-size: 26px;
    }
    .contact-content p {
        font-size: 15px;
    }
    .contact-content .cta-button {
        font-size: 16px;
        padding: 14px 0;
    }
}

@media (max-width: 700px) {
    /* General section spacing */
    .hero-section,
    .projects-section,
    .skills-section,
    .education-section,
    .badges-section,
    .photography-section,
    #contact.contact-section {
        padding-left: 18px;
        padding-right: 18px;
    }
    .section-header h2 {
        font-size: 24px;
    }
    .section-header p {
        font-size: 16px;
    }
    /* Stack grids and cards */
    .skills-grid,
    .project-grid,
    .badges-grid,
    .about-container {
        display: flex;
        flex-direction: column;
        gap: 28px;
    }
    .skill-card,
    .project-card,
    .badge-card,
    .education-card,
    .about-bio,
    .about-details,
    .contact-content {
        max-width: 100%;
        width: 100%;
        margin: 0 auto 28px auto;
        padding-left: 18px;
        padding-right: 18px;
    }
    /* Hero buttons stack */
    .hero-cta {
        flex-direction: column;
        gap: 16px;
    }
    .cta-button {
        width: 100%;
        font-size: 17px;
        padding: 16px 0;
        margin-bottom: 10px;
    }
    /* Contact form and button */
    .contact-content .cta-button {
        width: 100%;
        font-size: 17px;
        padding: 16px 0;
        margin-bottom: 10px;
    }
    .contact-form {
        padding: 22px 14px;
    }
    .form-group input,
    .form-group textarea {
        font-size: 16px;
        line-height: 1.6;
        padding: 14px 14px;
    }
    /* Photo grid */
    .photo-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .photo-item {
        border-radius: 12px;
    }
    /* Lightbox modal */
    .photo-modal-img {
        max-width: 98vw;
        max-height: 50vh;
        border-radius: 10px;
    }
    .photo-modal-close {
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
    }
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 32px 0;
    }
}

@media (max-width: 375px) {
    .hero-title {
        font-size: 24px;
    }
    .hero-subtitle {
        font-size: 15px;
    }
    .section-header h2 {
        font-size: 18px;
    }
    .about-bio h2 {
        font-size: 18px;
    }
    .about-details h3 {
        font-size: 16px;
    }
    .cta-button {
        font-size: 15px;
        padding: 12px 0;
    }
}

.nav-utils {
    position: relative;
    z-index: 2;
}

/* Work Page Styles */
.work-hero {
    min-height: 60vh;
    background: var(--bg-secondary);
}

.work-hero .hero-background {
    background: radial-gradient(circle at top right, var(--accent-primary) 0%, transparent 70%);
    opacity: 0.1;
}

.work-section {
    padding: 120px 24px;
    background-color: var(--bg-primary);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.work-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px 32px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.work-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.work-card-icon {
    font-size: 32px;
    margin-bottom: 24px;
}

.work-card h3 {
    color: var(--text-primary);
    margin-bottom: 16px;
    font-size: 24px;
    letter-spacing: -0.02em;
}

.work-card p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 16px;
    line-height: 1.6;
}

.work-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.work-card ul li {
    color: var(--text-secondary);
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
    font-size: 15px;
}

.work-card ul li:before {
    content: "•";
    position: absolute;
    left: 8px;
    color: var(--accent-primary);
}

.experience-section {
    padding: 120px 24px;
    background-color: var(--bg-secondary);
}

.experience-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.experience-timeline:before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--accent-primary);
    opacity: 0.2;
}

.experience-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 48px;
    position: relative;
}

.experience-date {
    width: 150px;
    text-align: right;
    padding-right: 32px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
}

.experience-content {
    width: calc(100% - 200px);
    padding-left: 32px;
    position: relative;
}

.experience-content:before {
    content: "";
    position: absolute;
    left: -6px;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-primary);
    border: 2px solid var(--bg-secondary);
}

.experience-content h3 {
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: 20px;
    letter-spacing: -0.02em;
}

.experience-content p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.6;
}

.experience-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.experience-details li {
    color: var(--text-secondary);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    font-size: 15px;
}

.experience-details li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

@media (max-width: 768px) {
    .work-section,
    .experience-section {
        padding: 60px 24px;
    }

    .work-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .work-card {
        padding: 32px 24px;
    }

    .experience-timeline:before {
        left: 0;
    }

    .experience-item {
        flex-direction: column;
    }

    .experience-date {
        width: 100%;
        text-align: left;
        padding-left: 32px;
        padding-right: 0;
        margin-bottom: 8px;
    }

    .experience-content {
        width: 100%;
        padding-left: 32px;
    }
}

/* Skills Page Styles */
.skills-hero {
    min-height: 60vh;
    background: var(--bg-secondary);
}

.skills-hero .hero-background {
    background: radial-gradient(circle at top right, var(--accent-primary) 0%, transparent 70%);
    opacity: 0.1;
}

.skills-section {
    padding: 120px 24px;
    background-color: var(--bg-primary);
}

.skills-section.alt {
    background-color: var(--bg-secondary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-card {
    background: var(--card-bg);
    padding: 32px;
    border-radius: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.skill-card h3 {
    font-size: 24px;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.skill-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skill-card li {
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-size: 16px;
    padding-left: 24px;
    position: relative;
}

.skill-card li:before {
    content: "•";
    position: absolute;
    left: 8px;
    color: var(--accent-primary);
}

@media (max-width: 768px) {
    .skills-section {
        padding: 60px 24px;
    }
    
    .skills-grid {
        gap: 24px;
    }
    
    .skill-card {
        padding: 24px;
    }
    
    .skill-card h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .skill-card li {
        font-size: 15px;
        margin-bottom: 10px;
    }
}

/* Badges Page Styles */
.badges-hero {
    min-height: 40vh;
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 64px 0 32px 0;
    position: relative;
}

.badges-hero .hero-title {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    color: var(--text-primary);
}

.badges-hero .hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 0;
    letter-spacing: -0.01em;
}

.badges-section {
    padding: 120px 24px;
    background-color: var(--bg-primary);
}

.badges-section.alt {
    background-color: var(--bg-secondary);
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.badge-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.badge-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.badge-icon {
    font-size: 48px;
    margin-bottom: 24px;
}

.badge-info h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.badge-info p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 16px;
}

.badge-date {
    display: inline-block;
    padding: 6px 12px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .badges-section {
        padding: 60px 24px;
    }
    
    .badges-grid {
        gap: 24px;
    }
    
    .badge-card {
        padding: 24px;
    }
    
    .badge-icon {
        font-size: 40px;
        margin-bottom: 20px;
    }
    
    .badge-info h3 {
        font-size: 20px;
    }
    
    .badge-info p {
        font-size: 15px;
    }
}

/* Repairs Page Styles */
.repairs-hero {
    background-color: var(--bg-secondary);
}

.repairs-hero .hero-background {
    background-image: linear-gradient(135deg, rgba(0, 102, 204, 0.1), rgba(0, 113, 227, 0.1));
}

.pricing-section {
    padding: 80px 0;
    background-color: var(--bg-secondary);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 22px;
}

.pricing-card {
    background-color: var(--card-bg);
    border-radius: 18px;
    padding: 32px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
}

.pricing-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.pricing-card .price {
    font-size: 32px;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 24px;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.pricing-card li {
    padding: 8px 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 24px;
}

.pricing-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .pricing-card {
        padding: 24px;
    }
    
    .pricing-card h3 {
        font-size: 20px;
    }
    
    .pricing-card .price {
        font-size: 28px;
    }
}

.models-section {
    padding: 80px 0;
    background-color: var(--bg-primary);
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 22px;
}

.model-group {
    background-color: var(--card-bg);
    border-radius: 18px;
    padding: 32px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
}

.model-group:hover {
    transform: translateY(-4px);
}

.model-group h3 {
    font-size: 24px;
    margin-bottom: 24px;
    color: var(--text-primary);
    text-align: center;
}

.model-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.model-group li {
    padding: 12px 0;
    color: var(--text-secondary);
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.model-group li:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .models-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .model-group {
        padding: 24px;
    }
    
    .model-group h3 {
        font-size: 20px;
        margin-bottom: 16px;
    }
    
    .model-group li {
        padding: 8px 0;
    }
}

.pricing-selector {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background-color: var(--card-bg);
    border-radius: 24px;
    box-shadow: var(--card-shadow);
}

.selector-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.model-select,
.service-select {
    position: relative;
}

.model-select label,
.service-select label {
    display: block;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 15px;
    letter-spacing: -0.01em;
}

.select-wrapper {
    position: relative;
}

.model-dropdown,
.service-dropdown {
    width: 100%;
    padding: 16px;
    padding-right: 40px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    background-color: white;
    font-size: 16px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.select-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 12px;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.model-dropdown:hover,
.service-dropdown:hover {
    border-color: var(--accent-primary);
    background-color: rgba(0, 102, 204, 0.02);
}

.model-dropdown:focus,
.service-dropdown:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.model-dropdown:focus + .select-arrow,
.service-dropdown:focus + .select-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.price-display {
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin-top: 2rem;
}

.price-display:hover {
    transform: translateY(-2px);
}

.price-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.price-content h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-size: 1.5rem;
    text-align: center;
}

.price-comparison {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 3rem;
    margin-bottom: 1rem;
    width: 100%;
    max-width: 500px;
}

.our-price, .apple-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 0;
    min-width: 120px;
}

.price-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-align: center;
}

.price {
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent-color);
    margin: 0;
    text-align: center;
}

.apple-price .price {
    color: #86868b;
}

.price-note {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    text-align: center;
}

@media (max-width: 768px) {
    .price-comparison {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
        max-width: 100%;
    }
    .price {
        font-size: 1.75rem;
    }
    .our-price, .apple-price {
        min-width: 0;
    }
}

.estimate-card {
    background: #fafbfc;
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    padding: 2.5rem 2rem 2rem 2rem;
    max-width: 400px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.estimate-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}
.estimate-subtitle {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 2rem;
    text-align: center;
}
.estimate-selectors {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    align-items: center;
}
.estimate-dropdown {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    background: #fff;
    font-size: 1.05rem;
    color: #222;
    outline: none;
    transition: border 0.2s;
    box-sizing: border-box;
    appearance: none;
}
.estimate-dropdown:focus {
    border: 1.5px solid #0071e3;
}
.estimate-help-link {
    color: #0071e3;
    font-size: 0.98rem;
    text-align: left;
    margin-top: -0.5rem;
    margin-bottom: 0.2rem;
    text-decoration: none;
    transition: text-decoration 0.2s;
    align-self: flex-start;
}
.estimate-help-link:hover {
    text-decoration: underline;
}
.estimate-btn {
    width: 100%;
    padding: 0.9rem 0;
    border-radius: 20px;
    background: #bdbdbd;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    margin-top: 0.5rem;
    cursor: not-allowed;
    transition: background 0.2s;
}
.estimate-btn.enabled {
    background: #222;
    cursor: pointer;
}
@media (max-width: 600px) {
    .estimate-card {
        padding: 1.2rem 0.5rem 1.5rem 0.5rem;
        max-width: 98vw;
    }
    .estimate-title {
        font-size: 1.2rem;
    }
    .estimate-dropdown {
        font-size: 0.98rem;
        padding: 0.8rem 1rem;
    }
}

.estimate-result-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    max-width: 400px;
    margin: 2rem auto 0 auto;
    text-align: center;
}
.estimate-result-row {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin: 1.2rem 0 0.5rem 0;
}
.estimate-result-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.estimate-result-label {
    font-size: 0.98rem;
    color: #888;
    margin-bottom: 0.3rem;
}
.estimate-result-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #222;
}
@media (max-width: 600px) {
    .estimate-result-card {
        padding: 1.2rem 0.5rem 1rem 0.5rem;
        max-width: 98vw;
    }
    .estimate-result-row {
        flex-direction: column;
        gap: 1.2rem;
    }
    .estimate-result-value {
        font-size: 1.2rem;
    }
} 