/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff6b35;
    text-decoration: none;
}

.nav-brand .logo {
    height: 40px;
    width: auto;
}

.nav-brand .brand-text {
    font-size: 1.5rem;
    font-weight: 700;
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 0.25rem;
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    z-index: 1001;
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background-color: #64748b;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu.mobile-active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    z-index: 1000;
}

.nav-menu a {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #ff6b35;
}

/* Dropdown styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    color: #64748b;
}

.dropdown.active .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 999;
    border-radius: 0.5rem;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.dropdown-content.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-content a {
    color: #64748b;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #f8fafc;
    color: #ff6b35;
}


/* Hero section */
.hero {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ffd23f 100%);
    color: white;
    text-align: center;
    padding: 4rem 2rem;
}

.hero-email {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-email-img {
    max-width: min(400px, 100%);
    height: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.hero-email-img:hover {
    opacity: 1;
}

/* Contact Email (for privacy pages) */
.contact-email {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-email-img {
    max-width: min(400px, 100%);
    height: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.contact-email-img:hover {
    opacity: 1;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-logo {
    margin-bottom: 2rem;
}

.hero-logo-img {
    height: 120px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #ff6b35;
    color: white;
}

.btn-primary:hover {
    background: #e55a2b;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #64748b;
    color: white;
}

.btn-secondary:hover {
    background: #475569;
}

.btn-outline {
    background: transparent;
    color: #ff6b35;
    border: 2px solid #ff6b35;
}

.btn-outline:hover {
    background: #ff6b35;
    color: white;
}

.show-gallery-btn {
    margin: 1rem 0;
    display: inline-block;
    width: auto;
    max-width: fit-content;
}


/* Main content */
.main {
    min-height: calc(100vh - 200px);
}

/* Projects section */
.projects-section {
    margin-top: 4rem;
}


/* Page header */
.page-header {
    padding: 3rem 0 2rem;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* Projects */
.projects-grid {
    display: grid;
    gap: 2rem;
    margin: 3rem 0;
}

.project-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-left: 4px solid #ff6b35;
    position: relative;
    display: flex;
    flex-direction: column;
}

.project-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.project-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.project-card h3 {
    color: #1e293b;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-card h5 {
    color: #64748b;
    font-weight: 500;
    margin-bottom: 1rem;
}

.project-card p {
    margin-bottom: 1rem;
    color: #64748b;
    flex-grow: 1;
}

/* Gallery styles */
.project-gallery-container {
    margin-top: 1.5rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.gallery-carousel {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.gallery-image-container {
    flex: 1;
    text-align: center;
}

.gallery-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
}

.gallery-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
    z-index: 10;
}

.gallery-nav-btn {
    background: #ff6b35;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.gallery-nav-btn:hover {
    background: #e55a2b;
}

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: background-color 0.2s;
}

.gallery-dot.active {
    background: #ff6b35;
}


.project-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* Content */
.content {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin: 2rem 0;
}

.content h2 {
    color: #1e293b;
    margin: 2rem 0 1rem;
}

.content h2:first-child {
    margin-top: 0;
}

.content p {
    margin-bottom: 1rem;
    color: #64748b;
}

.contact-info {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border-left: 4px solid #2563eb;
    margin-top: 2rem;
}

.contact-info h2 {
    margin-top: 0;
    color: #1e293b;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info a {
    color: #2563eb;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Newsletter */
.newsletter {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ffd23f 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 1rem;
    text-align: center;
    margin: 3rem 0;
}

.newsletter h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.newsletter p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
    transition: all 0.5s ease;
}

.newsletter-form.success {
    background: rgba(34, 197, 94, 0.2);
    border-radius: 0.5rem;
    padding: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.newsletter-form.success input {
    background: rgba(34, 197, 94, 0.1);
    border: 2px solid #22c55e;
}

.newsletter-form button {
    padding: 0.75rem 1.5rem;
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid white;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.newsletter-form.success button {
    background: #22c55e;
    border-color: #22c55e;
    color: white;
}

.newsletter-form button:hover {
    background: white;
    color: #ff6b35;
}

.newsletter-form.success button:hover {
    background: #16a34a;
    border-color: #16a34a;
    color: white;
}

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-logo-img:hover {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        position: relative;
        padding: 0.75rem 1rem;
        justify-content: flex-start;
    }

    .hamburger-menu {
        display: flex;
    }

    .nav-menu {
        display: none;
        gap: 0;
        flex-direction: column;
        width: 100%;
        align-items: stretch;
        background: white;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-menu.mobile-active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #f1f5f9;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        display: block;
        padding: 1rem;
        text-align: left;
    }

    .nav-brand {
        flex: 1;
    }

    .nav-brand .logo {
        height: 32px;
    }

    .nav-brand .brand-text {
        font-size: 1.25rem;
    }

    .dropdown {
        width: 100%;
        position: relative;
    }

    .dropdown-toggle {
        width: 100%;
        text-align: left;
        display: block;
        padding: 1rem;
        background: none;
        border: none;
        border-radius: 0;
        margin: 0;
        cursor: pointer;
    }

    .dropdown-toggle::after {
        float: right;
        margin-top: 0.25rem;
    }

    .dropdown-content {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
        border: none;
        border-radius: 0;
        margin: 0;
        background: #f8fafc;
        opacity: 1;
        transform: none;
        transition: none;
    }

    .dropdown-content.show {
        display: block;
    }

    .dropdown-content a {
        padding: 0.75rem 1.5rem;
        border-bottom: 1px solid #e2e8f0;
        text-align: left;
        background: white;
        margin: 0;
    }

    .dropdown-content a:last-child {
        border-bottom: none;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-logo-img {
        height: 80px;
    }

    .footer-logo-img {
        height: 50px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .project-links {
        flex-direction: column;
    }

}
