/* ==========================================================================
   Geek5 - Static Website Styles
   Clean, minimal CSS written from scratch
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Variables & Reset
   -------------------------------------------------------------------------- */
:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #0f3460;
    --text-color: #333;
    --text-light: #666;
    --white: #fff;
    --gray-light: #f5f5f5;
    --gray: #e0e0e0;
    --font-main: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Dosis', var(--font-main);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--white);
}

/* --------------------------------------------------------------------------
   2. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; letter-spacing: 0.3em; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover { opacity: 0.8; }

.text-center { text-align: center; }
.text-white { color: var(--white); }
.text-uppercase { text-transform: uppercase; }

/* --------------------------------------------------------------------------
   3. Layout & Container
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-dark {
    background: var(--primary-color);
    color: var(--white);
}

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

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    flex: 1;
    padding: 0 15px;
    min-width: 250px;
}

.col-half {
    flex: 0 0 50%;
    padding: 0 15px;
}

.col-third {
    flex: 0 0 33.333%;
    padding: 0 15px;
}

@media (max-width: 768px) {
    .col-half, .col-third { flex: 0 0 100%; }
    h1 { font-size: 2rem; letter-spacing: 0.15em; }
}

/* --------------------------------------------------------------------------
   4. Header & Navigation
   -------------------------------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(26, 26, 46, 0.95);
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo img {
    height: 40px;
    width: auto;
}

/* --------------------------------------------------------------------------
   5. Hero Section
   -------------------------------------------------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(26, 26, 46, 0.3), rgba(26, 26, 46, 0.3)),
                url('../images/hero-bg.jpg') center/cover no-repeat fixed;
    color: var(--white);
    padding: 100px 20px;
}

.hero h1 {
    margin-bottom: 30px;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* --------------------------------------------------------------------------
   6. Services Tabs
   -------------------------------------------------------------------------- */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.tab-btn {
    padding: 20px 30px;
    border: 2px solid var(--gray);
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 150px;
}

.tab-btn:hover,
.tab-btn.active {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.tab-btn .icon {
    font-size: 2rem;
}

.tab-content {
    display: none;
    padding: 30px;
    background: var(--gray-light);
    border-radius: 8px;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --------------------------------------------------------------------------
   7. Features Grid
   -------------------------------------------------------------------------- */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.feature {
    text-align: center;
    padding: 30px;
}

.feature .icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.feature h3 {
    margin-bottom: 15px;
}

/* --------------------------------------------------------------------------
   8. About Section
   -------------------------------------------------------------------------- */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.9;
}

/* --------------------------------------------------------------------------
   9. Contact Section
   -------------------------------------------------------------------------- */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.contact-item {
    text-align: center;
}

.contact-item .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.contact-item h3 {
    margin-bottom: 10px;
}

.contact-item a {
    color: var(--white);
}

/* Contact Form */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-family: var(--font-main);
    background: rgba(255,255,255,0.1);
    color: var(--white);
    transition: var(--transition);
}

.form-control::placeholder {
    color: rgba(255,255,255,0.6);
}

.form-control:focus {
    outline: none;
    background: rgba(255,255,255,0.2);
}

textarea.form-control {
    border-radius: 20px;
    min-height: 120px;
    resize: vertical;
}

.form-note {
    text-align: center;
    margin: 20px 0;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   10. Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-block;
    padding: 15px 40px;
    border: 2px solid var(--white);
    border-radius: 30px;
    background: transparent;
    color: var(--white);
    font-size: 1rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
.footer {
    padding: 60px 0;
    text-align: center;
    background: var(--gray-light);
}

.footer p {
    margin: 5px 0;
    color: var(--text-light);
}

/* --------------------------------------------------------------------------
   12. Back to Top
   -------------------------------------------------------------------------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent-color);
}

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

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   14. Utility Classes
   -------------------------------------------------------------------------- */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
