@font-face {
    font-family: 'Goldman';
    src: url('../font/Goldman/Goldman-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Goldman';
    src: url('../font/Goldman/Goldman-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Goldman', 'Arial', sans-serif;
    line-height: 1.6;
    color: #222;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

header.scrolled {
    padding: 0.2rem 0;
    box-shadow: 0 2px 25px rgba(0,0,0,0.15);
}

/* Mobile header adjustments */
@media (max-width: 768px) {
    header {
        padding: 0.3rem 0;
    }
    
    header.scrolled {
        padding: 0.1rem 0;
    }
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    transition: all 0.3s ease;
}

header.scrolled nav {
    padding: 0.3rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo img {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
}

header.scrolled .logo img {
    height: 25px;
}

.logo h1 {
    font-size: 3.3rem;
    color: #222;
    font-weight: bold;
    transition: all 0.3s ease;
}

header.scrolled .logo h1 {
    font-size: 2.2rem;
}

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

.nav-links a {
    text-decoration: none;
    color: #222;
    font-weight: 500;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

header.scrolled .nav-links a {
    font-size: 1.1rem;
}

.nav-links a:hover {
    color: #3b82f6;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #222;
    margin: 3px 0;
    transition: 0.3s;
    transform-origin: center;
}

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

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Services Section */
.services {
    padding: 60px 0;
    background: white;
    margin-top: 100px; /* Account for fixed header */
    scroll-margin-top: 120px; /* Offset for smooth scrolling */
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #222;
}

.section-title-light {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #fff;
}

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

.service-card {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #3b82f6;
}

.service-icon .material-icons {
    font-size: 3rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: #222;
}

/* Portfolio Section */
.portfolio {
    padding: 100px 0;
    background: #f8fafc;
    scroll-margin-top: 120px; /* Offset for smooth scrolling */
}

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

.portfolio-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

.portfolio-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-content h3 {
    margin-bottom: 0.5rem;
    color: #222;
}

.portfolio-content p {
    color: #374151;
    margin-bottom: 1rem;
}

.portfolio-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: bold;
}

.portfolio-link:hover {
    text-decoration: underline;
}

/* About Section */
.about {
    padding: 100px 0;
    background: white;
    scroll-margin-top: 120px; /* Offset for smooth scrolling */
}

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

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #374151;
}

.about-text p {
    margin-bottom: 1rem;
}

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

.about-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: #1e3a8a;
    color: white;
    text-align: center;
    scroll-margin-top: 120px; /* Offset for smooth scrolling */
}

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

.contact-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    color: white;
}

.contact-item h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
}

.contact-item p {
    color: white;
}

.contact-item a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #60a5fa;
    text-decoration: underline;
}

.contact-item h3 .material-icons {
    font-size: 1.5rem;
    color: #60a5fa;
}

/* Footer */
footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    header .container {
        padding: 0 15px;
    }
    
    .logo {
        margin-left: 0;
        padding-left: 0;
    }

    /* Fix logo padding when scrolled on mobile */
    header.scrolled .container {
        padding: 0 15px;
    }
    
    header.scrolled .logo {
        margin-left: 0;
        padding-left: 0;
    }

    .hamburger {
        display: flex;
        margin-right: 5px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        gap: 3rem;
        transition: all 0.3s ease;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 2rem;
        padding: 1rem;
        border-bottom: 2px solid transparent;
        transition: all 0.3s ease;
    }

    .nav-links a:hover {
        border-bottom-color: #3b82f6;
    }

    .services {
        margin-top: 0; /* Remove margin to eliminate gap */
        padding-top: 80px; /* Use padding instead of margin for spacing */
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .logo h1 {
        font-size: 2.5rem;
    }

    header.scrolled .logo h1 {
        font-size: 1.8rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .contact-item {
        padding: 1.5rem;
    }
}

/* Additional mobile spacing improvements */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    header .container {
        padding: 0 10px;
    }
    
    header.scrolled .container {
        padding: 0 10px;
    }
    
    .logo {
        gap: 10px;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    header.scrolled .logo h1 {
        font-size: 1.5rem;
    }
    
    .services {
        padding-top: 70px;
    }
    
    .service-card {
        padding: 1rem;
    }
    
    .contact-item {
        padding: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

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