@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --bg-main: #ffffff;
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.025);
    --hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

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

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px; /* Slimmer header */
    background: #ffffff !important;
    border-bottom: 1px solid #f1f5f9;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* Lite Shadow */
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.main-logo {
    height: 36px; /* Slightly smaller for 60px header */
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    display: inline-block;
}

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

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    cursor: pointer;
}

/* Updated Responsive Header */
@media (max-width: 992px) {
    .menu-toggle { display: block; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #ffffff;
        flex-direction: column;
        padding: 1.5rem 1.5rem 2rem;
        gap: 1.2rem;
        border-bottom: 1px solid #f1f5f9;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    }
    .nav-menu.active { display: flex; }
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding-top: 120px; /* Increased space from header */
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8)), url('images/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 3.8rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-main);
}

.hero h1 span { color: var(--primary-color); }

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns { 
    display: flex; 
    gap: 1rem; 
    flex-wrap: nowrap; /* Keep on same row */
    justify-content: center; /* Center them */
}

.btn-primary {
    padding: 0.9rem 2.2rem;
    background: var(--primary-color);
    border-radius: 6px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    border: none;
}

.btn-secondary {
    padding: 0.9rem 2.2rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    background: transparent;
}

/* Services */
.services { 
    padding: 6rem 0; 
    background: linear-gradient(rgba(248, 250, 252, 0.95), rgba(248, 250, 252, 0.95)), url('images/services_bg.png');
    background-size: cover;
    background-position: center;
}

.section-header { text-align: center; margin-bottom: 4rem; }

.section-header h2 { font-size: 2.5rem; margin-bottom: 1rem; color: var(--text-main); }

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

.service-card {
    background: white;
    border: 1px solid var(--border-color);
    padding: 1.5rem 2rem; /* Reduced Padding */
    border-radius: 16px;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover { 
    transform: translateY(-8px); 
    border-color: var(--primary-color); 
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08); 
}

.service-icon {
    width: 48px; /* Slightly smaller icon box */
    height: 48px; 
    border-radius: 10px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    margin-bottom: 1.2rem; /* Reduced margin */
    font-size: 1.3rem;
    transition: 0.3s;
}

/* Service Themes */
.service-web-design .service-icon { background: rgba(37, 99, 235, 0.1); color: #2563eb; }
.service-web-app .service-icon { background: rgba(79, 70, 229, 0.1); color: #4f46e5; }
.service-graphic-design .service-icon { background: rgba(219, 39, 119, 0.1); color: #db2777; }
.service-api .service-icon { background: rgba(5, 150, 105, 0.1); color: #059669; }
.service-source-code .service-icon { background: rgba(71, 85, 105, 0.1); color: #475569; }
.service-crm .service-icon { background: rgba(217, 119, 6, 0.1); color: #d97706; }
.service-invoice .service-icon { background: rgba(124, 58, 237, 0.1); color: #7c3aed; }

.service-card h3 {
    font-size: 1.15rem; /* Slightly smaller title */
    margin-bottom: 0.6rem; /* Reduced margin */
    color: var(--text-main);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Footer */
footer { padding: 8rem 0 4rem; border-top: 1px solid var(--border-color); background: white; } /* Increased vertical padding */
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 3rem; margin-bottom: 3rem; }
.footer-links h4 { margin-bottom: 1.2rem; font-size: 1.1rem; color: var(--text-main); }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 1.2rem; } /* Increased gap between lines */
.footer-links a { text-decoration: none; color: var(--text-muted); font-size: 0.9rem; transition: 0.3s; }
.footer-links a:hover { color: var(--primary-color); }
.contact-list a { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    font-size: 0.75rem !important; /* Extremely Small Font */
}
.contact-list svg { width: 16px; height: 16px; }

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    nav { grid-template-columns: 1fr auto; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-top: 1px solid var(--border-color);
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    }
    .nav-links.active { display: flex; }
    .mobile-menu-btn { display: block; }
    .logo-container img { height: 35px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.2rem; }
    .hero-btns { flex-direction: column; }
    .btn-primary, .btn-secondary { text-align: center; }
}

/* AI Course Section */
.ai-course { padding: 100px 0; background: var(--bg-light); overflow: hidden; }
.ai-course-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 4rem; align-items: center; }
.ai-course-preview-card { background: white; padding: 1.5rem; border-radius: 24px; box-shadow: 0 30px 60px rgba(0,0,0,0.1); border: 1px solid rgba(255,255,255,0.8); }

/* About Section */
.about { padding: 100px 0; background: #ffffff; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 4rem; align-items: center; }
.about-promise-card { background: var(--bg-light); padding: 3rem; border-radius: 24px; border: 1px solid var(--border-color); position: relative; }

/* Auth Pages (Login/Register) */
.auth-page { padding: 120px 0 80px; min-height: 80vh; background: var(--bg-light); display: flex; align-items: center; }
.auth-card { max-width: 450px; margin: 0 auto; background: white; padding: 3rem; border-radius: 24px; box-shadow: 0 20px 40px rgba(0,0,0,0.05); border: 1px solid var(--border-color); width: 100%; }

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--text-main); }
.form-control { width: 100%; padding: 0.8rem 1rem; border-radius: 8px; border: 1px solid var(--border-color); outline: none; transition: 0.3s; font-size: 1rem; }
.form-control:focus { border-color: var(--primary-color); }

/* Additional Responsive Tweaks */
@media (max-width: 768px) {
    .ai-course, .about { padding: 60px 0; }
    .ai-course-grid, .about-grid { gap: 2rem; text-align: center; }
    .ai-course ul li { justify-content: center; }
    .ai-course .btn-primary { width: 100%; }
    .ai-course .hero-tag { margin-left: auto; margin-right: auto; }
    
    .auth-card { padding: 2rem 1.5rem; }
    
    .section-header h2 { font-size: 2rem; }
    .hero { padding-top: 100px; text-align: center; }
    .hero-btns { flex-direction: column; }
    .btn-primary, .btn-secondary { width: 100%; display: block; text-align: center; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.2rem; }
    .about-promise-card { padding: 2rem 1.5rem; }
}

/* Hero Tag Component */
.hero-tag {
    background: var(--primary-color);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* Animations Trigger */
.animate { opacity: 0; transform: translateY(30px); transition: 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.animate.visible { opacity: 1; transform: translateY(0); }

.no-js .animate, .animate.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}
