/* =================================================================
   WIK Technologies - Stylesheet
   ================================================================= */

/* CSS Variables */
:root {
    --primary-blue: #1E40AF;
    --secondary-blue: #3B82F6;
    --accent-red: #DC2626;
    --dark: #0A0A0A;
    --white: #FFFFFF;
    --light-gray: #F3F4F6;
    --text-gray: #6B7280;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    color: var(--dark);
    overflow-x: hidden;
    line-height: 1.6;
}

/* =================================================================
   Navigation
   ================================================================= */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-bottom: 1px solid rgba(30, 64, 175, 0.1);
}

.logo {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-blue);
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 0;
    cursor: pointer;
    transition: transform 0.3s;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    align-items: center;
    gap: 0;
}

.spark {
    width: 4px;
    height: 30px;
    background: linear-gradient(to bottom, var(--accent-red), #EF4444);
    border-radius: 3px;
    margin: 0 10px;
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { 
        box-shadow: 0 0 10px rgba(220, 38, 38, 0.4);
        transform: scaleY(1);
    }
    50% { 
        box-shadow: 0 0 20px rgba(220, 38, 38, 0.6);
        transform: scaleY(1.1);
    }
}

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

.nav-links a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-red);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--primary-blue);
}

.cta-button {
    background: var(--accent-red);
    color: white;
    padding: 0.75rem 1.75rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.cta-button:hover {
    background: #B91C1C;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3);
}

/* =================================================================
   Page System
   ================================================================= */
.page {
    display: none;
    animation: fadeIn 0.4s ease-in;
}

.page.active {
    display: block;
}

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

/* =================================================================
   Hero Section
   ================================================================= */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1E3A8A 50%, var(--dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 5% 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.15) 0%, transparent 70%);
    top: -300px;
    right: -300px;
    animation: float 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    bottom: -200px;
    left: -200px;
    animation: float 6s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-30px, 30px) rotate(5deg); }
}

.hero-content {
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 900;
    color: white;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-text .highlight {
    background: linear-gradient(90deg, var(--accent-red), #EF4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.tagline {
    font-size: 0.9rem;
    color: var(--accent-red);
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--accent-red);
    color: white;
    padding: 1.1rem 2.5rem;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s;
    display: inline-block;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
}

.btn-primary:hover {
    background: #B91C1C;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(220, 38, 38, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 1.1rem 2.5rem;
    border: 2px solid white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s;
    display: inline-block;
    cursor: pointer;
}

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

.code-window {
    background: rgba(10, 10, 10, 0.6);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    border: 1px solid rgba(59, 130, 246, 0.3);
    backdrop-filter: blur(10px);
}

.window-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.window-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-content {
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    color: #E5E7EB;
    line-height: 2;
}

.keyword { 
    color: var(--secondary-blue); 
    font-weight: 600; 
}

.function { 
    color: #FBBF24; 
}

.string { 
    color: #34D399; 
}

/* =================================================================
   Services Section
   ================================================================= */
.services-section {
    padding: 6rem 5%;
    background: var(--white);
}

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

.section-title h2 {
    font-size: 2.75rem;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--text-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(30, 64, 175, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(30, 64, 175, 0.15);
    border-color: var(--secondary-blue);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 16px rgba(30, 64, 175, 0.2);
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-card p {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    color: var(--text-gray);
    padding: 0.5rem 0;
    padding-left: 1.8rem;
    position: relative;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-red);
    font-weight: bold;
    font-size: 1.1rem;
}

/* =================================================================
   CTA Section
   ================================================================= */
.cta-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1E3A8A 100%);
    padding: 6rem 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(220, 38, 38, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2.75rem;
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 900;
}

.cta-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* =================================================================
   About Page
   ================================================================= */
.about-hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1E3A8A 100%);
    padding: 8rem 5% 5rem;
    text-align: center;
    color: white;
}

.about-hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.about-hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
}

.about-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 5rem 5%;
}

.about-content h2 {
    font-size: 2.25rem;
    color: var(--dark);
    margin-bottom: 1.5rem;
    margin-top: 3rem;
    font-weight: 800;
}

.about-content > h2:first-of-type {
    margin-top: 0;
}

.about-content p {
    font-size: 1.15rem;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 2rem;
}

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

.value-card {
    background: var(--light-gray);
    padding: 2.5rem;
    border-radius: 16px;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.value-card:hover {
    border-color: var(--secondary-blue);
    transform: translateY(-5px);
}

.value-card h3 {
    color: var(--primary-blue);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.value-card p {
    color: var(--text-gray);
    font-size: 1rem;
}

.about-cta {
    margin-top: 4rem;
    padding: 3.5rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 20px;
    text-align: center;
    color: white;
    box-shadow: 0 20px 40px rgba(30, 64, 175, 0.2);
}

.about-cta h2 {
    color: white;
    margin-bottom: 1rem;
    font-size: 2.25rem;
    margin-top: 0;
}

.about-cta p {
    margin-bottom: 2rem;
    font-size: 1.15rem;
    opacity: 0.95;
}

.about-cta .btn-secondary {
    color: var(--primary-blue);
    border-color: white;
    background: white;
}

.about-cta .btn-secondary:hover {
    background: var(--light-gray);
}

/* =================================================================
   Portfolio Page
   ================================================================= */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.project-image {
    height: 220px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
}

.project-content {
    padding: 2.5rem;
}

.project-category {
    color: var(--accent-red);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-content h3 {
    font-size: 1.6rem;
    color: var(--dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.project-content p {
    color: var(--text-gray);
    line-height: 1.7;
}

.tech-tags {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.tech-tag {
    background: var(--light-gray);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--dark);
    font-weight: 600;
    border: 1px solid #E5E7EB;
}

/* =================================================================
   Contact Page
   ================================================================= */
.contact-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    padding: 5rem 5%;
}

.contact-info h2,
.contact-grid > div > h2 {
    color: var(--dark);
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 800;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: start;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    font-size: 1.5rem;
    box-shadow: 0 8px 16px rgba(30, 64, 175, 0.2);
}

.contact-item h3 {
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.contact-item p {
    color: var(--text-gray);
}

.contact-item a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--primary-blue);
}

.business-hours {
    background: var(--light-gray);
    padding: 2.5rem;
    border-radius: 16px;
}

.business-hours h3 {
    color: var(--dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.business-hours p {
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.1);
}

.submit-button {
    width: 100%;
    padding: 1.2rem;
    background: var(--accent-red);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.2);
}

.submit-button:hover {
    background: #B91C1C;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(220, 38, 38, 0.3);
}

/* =================================================================
   Footer
   ================================================================= */
footer {
    background: var(--dark);
    padding: 4rem 5% 2rem;
    color: #D1D5DB;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0;
}

.footer-logo .spark {
    height: 28px;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-section p {
    color: var(--text-gray);
    line-height: 1.7;
    margin-top: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: #D1D5DB;
    text-decoration: none;
    transition: color 0.3s;
    cursor: pointer;
}

.footer-section a:hover {
    color: var(--accent-red);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--text-gray);
}

/* =================================================================
   Responsive Design
   ================================================================= */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-text h1 {
        font-size: 2.75rem;
    }

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

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

@media (max-width: 768px) {
    nav {
        padding: 1rem 4%;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding: 5rem 4% 3rem;
    }

    .hero-text h1 {
        font-size: 2.25rem;
    }

    .hero-text p {
        font-size: 1.1rem;
    }

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

    .about-hero h1 {
        font-size: 2.5rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .services-section,
    .about-content {
        padding: 4rem 4%;
    }

    .btn-primary,
    .btn-secondary {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.85rem;
    }

    .code-window {
        padding: 1.5rem;
    }

    .code-content {
        font-size: 0.8rem;
    }

    .service-card,
    .value-card {
        padding: 2rem;
    }

    .contact-grid {
        padding: 3rem 4%;
    }
}