:root {
    --primary-color: #000000;
    --background-color: #ffffff;
    --text-color: #1a1a1a;
    --secondary-text-color: #666666;
    --accent-color: #1a1a1a;
    --light-gray: #f5f5f5;
}

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

html { font-size: 16px; }

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.nav-open {
    overflow: hidden;
}

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

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-logo img {
    width: 200px;
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

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

.logo img { height: 45px; }

.main-nav {
    display: block; /* Show by default */
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-nav a:hover { color: var(--secondary-text-color); }

.cta-button {
    background-color: var(--accent-color);
    color: #fff !important;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.hamburger-menu {
    display: none; /* Hide by default */
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

.hamburger-menu.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--background-color);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-nav.open { right: 0; }

.mobile-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 2rem;
    font-weight: 600;
    margin: 20px 0;
    opacity: 0;
    transform: translateY(20px);
}

.mobile-nav.open a { animation: fadeInSlideUp 0.5s forwards; }
.mobile-nav.open a:nth-child(1) { animation-delay: 0.2s; }
.mobile-nav.open a:nth-child(2) { animation-delay: 0.3s; }
.mobile-nav.open a:nth-child(3) { animation-delay: 0.4s; }

@keyframes fadeInSlideUp {
    to { opacity: 1; transform: translateY(0); }
}

.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-content { opacity: 0; transform: translateY(20px); }

.hero-image-container {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 30px auto;
    transform: scale(0);
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-text h1, .hero-text h2, .hero-text p { overflow: hidden; }
.hero-text span { display: inline-block; transform: translateY(100%); }

h1 { font-size: 4.5rem; font-weight: 600; letter-spacing: -2px; line-height: 1.1; }
h2 { font-size: 1.5rem; font-weight: 400; color: var(--secondary-text-color); }
.hero p { font-size: 1.2rem; color: var(--secondary-text-color); margin-top: 10px; }

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeIn 1s 4.5s forwards, bounce 2s infinite 4.5s;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); } 40% { transform: translate(-50%, -10px); } 60% { transform: translate(-50%, -5px); } }

section { padding: 100px 0; }
.section-title { font-size: 2.8rem; font-weight: 600; text-align: center; margin-bottom: 20px; }

section p {
    font-size: 1.1rem;
    color: var(--secondary-text-color);
    max-width: 700px;
    margin: 0 auto 40px auto;
    text-align: center;
}

.about-section, .services-section, .portfolio-section, .contact-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-section.visible, .services-section.visible, .portfolio-section.visible, .contact-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.services-section { background-color: var(--light-gray); }

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

.service-card {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #eee;
}

.service-card svg { width: 48px; height: 48px; color: var(--text-color); margin-bottom: 20px; }
.service-card h3 { font-size: 1.5rem; margin-bottom: 10px; }
.service-card p { max-width: 100%; margin-bottom: 0; }

.portfolio-section, .contact-section { padding: 120px 0; text-align: center; }

.main-footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.footer-logo img { height: 50px; margin-bottom: 20px; }
.main-footer p { font-size: 1rem; color: rgba(255,255,255,0.7); margin-bottom: 20px; }
.footer-social a { color: #fff; text-decoration: none; margin: 0 15px; font-weight: 600; }
.copyright { margin-top: 30px; font-size: 0.9rem; color: rgba(255,255,255,0.5); }

body.loaded .hero-content { opacity: 1; transform: translateY(0); }
body.loaded .hero-image-container { animation: scaleIn 0.8s 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards; }

@keyframes scaleIn { from { transform: scale(0); } to { transform: scale(1); } }

body.loaded .hero-text .line-1 span { animation: revealText 0.8s 1.8s forwards; }
body.loaded .hero-text .line-2 span { animation: revealText 0.8s 2s forwards; }
body.loaded .hero-text .line-3 span { animation: revealText 0.8s 2.2s forwards; }

@keyframes revealText { from { transform: translateY(100%); } to { transform: translateY(0); } }

@media (max-width: 768px) {
    h1 { font-size: 2.8rem; }
    .section-title { font-size: 2.2rem; }
    .hero-image-container { width: 140px; height: 140px; }
    
    .main-nav { 
        display: none; /* This HIDES the desktop menu on mobile */
    }
    .hamburger-menu { 
        display: block; /* This SHOWS the hamburger icon on mobile */
    }
}
