/* Variables */
:root {
    --bg-dark: #050505;
    --text-main: #ffffff;
    --text-muted: #b0b0b0;
    --accent: #e0e0e0;
    --grid-color: rgba(255, 255, 255, 0.05);
    --font-main: 'Montserrat', sans-serif;
    --border-color: rgba(255,255,255,0.1);
}

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

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

/* Animated Geometric Background */
.bg-animation {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: panGrid 20s linear infinite;
}

.bg-lines {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.line {
    position: absolute;
    background: rgba(255,255,255,0.03);
    width: 2px;
    height: 150vh;
    transform: rotate(45deg);
}

.line-1 { top: -50%; left: 20%; animation: slideLine 15s linear infinite; }
.line-2 { top: -20%; left: 60%; animation: slideLine 25s linear infinite reverse; }
.line-3 { top: -80%; left: 80%; width: 4px; animation: slideLine 20s linear infinite; }

/* Abstract Shapes & Particles */
.shape {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

/* Thick Diagonal Bars */
.bar {
    width: 20px;
    height: 150px;
    background: rgba(255, 255, 255, 0.8);
    transform: rotate(45deg);
}
.bar-1 { top: 10%; left: -5%; animation: moveBar1 20s linear infinite; }
.bar-2 { top: 70%; right: -5%; animation: moveBar2 25s linear infinite; }

/* Crosses */
.cross {
    width: 20px;
    height: 20px;
    position: relative;
    opacity: 0.6;
}
.cross::before, .cross::after {
    content: '';
    position: absolute;
    background: #fff;
}
.cross::before { top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-50%); }
.cross::after { left: 50%; top: 0; width: 2px; height: 100%; transform: translateX(-50%); }

.cross-1 { top: 20%; left: 15%; animation: floatCross 15s ease-in-out infinite alternate; }
.cross-2 { top: 60%; right: 25%; animation: floatCross 18s ease-in-out infinite alternate-reverse; }
.cross-3 { bottom: 15%; left: 35%; animation: floatCross 22s ease-in-out infinite alternate; }

/* Hollow Squares */
.square {
    width: 40px; height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    transform: rotate(45deg);
}
.square-1 { top: 15%; right: 15%; animation: rotateSquare 30s linear infinite; }
.square-2 { bottom: 25%; left: 10%; animation: rotateSquare 25s linear infinite reverse; }

/* Large faded elements */
.huge-ring {
    width: 500px; height: 500px;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 50%;
    top: -10%; right: -10%;
    animation: pulseRing 10s ease-in-out infinite alternate;
}

@keyframes moveBar1 {
    0% { transform: translate(0, 0) rotate(45deg); }
    100% { transform: translate(120vw, 120vh) rotate(45deg); }
}
@keyframes moveBar2 {
    0% { transform: translate(0, 0) rotate(45deg); }
    100% { transform: translate(-120vw, -120vh) rotate(45deg); }
}
@keyframes floatCross {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(100px, 50px) rotate(90deg); }
    100% { transform: translate(-50px, 150px) rotate(180deg); }
}
@keyframes rotateSquare {
    0% { transform: translate(0, 0) rotate(45deg); }
    50% { transform: translate(50px, -50px) rotate(225deg); }
    100% { transform: translate(0, 0) rotate(405deg); }
}
@keyframes pulseRing {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.2); opacity: 0.1; }
}

@keyframes panGrid {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

@keyframes slideLine {
    0% { transform: translateY(-100%) rotate(45deg); }
    100% { transform: translateY(100%) rotate(45deg); }
}

/* Typography & Base */
h1, h2, h3 {
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

.section {
    padding: 120px 0;
    position: relative;
    z-index: 1;
}

/* Header */
header {
    position: fixed;
    top: 0; width: 100%;
    padding: 25px 0;
    z-index: 100;
    transition: 0.4s ease;
    border-bottom: 1px solid transparent;
}

header.scrolled {
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.logo img {
    height: 100px; /* Increased significantly */
    filter: invert(1); /* Makes the black logo white */
    transition: 0.3s;
}

header.scrolled .logo img {
    height: 70px; /* Scales down on scroll */
}

nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

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

.lang-toggle {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 6px 15px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.8rem;
    transition: 0.3s;
}

.lang-toggle:hover {
    background: var(--text-main);
    color: var(--bg-dark);
}

/* Animations (Reveal) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.1, 0, 0.1, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 30px;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
}

.btn {
    display: inline-block;
    padding: 18px 40px;
    background: var(--text-main);
    color: var(--bg-dark);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.4s;
    border: 1px solid var(--text-main);
}

.btn:hover {
    background: transparent;
    color: var(--text-main);
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-visual img {
    width: 100%;
    filter: grayscale(80%) contrast(120%);
    border: 1px solid var(--border-color);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    border: 1px solid var(--border-color);
    padding: 40px;
    background: rgba(255,255,255,0.02);
    transition: 0.4s;
}

.service-card:hover {
    background: rgba(255,255,255,0.05);
    transform: translateY(-10px);
    border-color: rgba(255,255,255,0.3);
}

.icon {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-main);
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

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

/* Contact */
.contact-section {
    border-top: 1px solid var(--border-color);
    background: #020202;
}

.contact-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-wrap h2 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.contact-wrap > p {
    color: var(--text-muted);
    margin-bottom: 50px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
    text-align: left;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-family: inherit;
    transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--text-main);
}

.submit-btn {
    background: var(--text-main);
    color: var(--bg-dark);
    border: none;
    padding: 15px 40px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    margin-top: 20px;
    transition: 0.3s;
}

.submit-btn:hover {
    background: #ccc;
}

.contact-details {
    margin-top: 60px;
    display: flex;
    gap: 50px;
    justify-content: center;
}

.c-item h4 {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

/* Layout adjustments */
@media (max-width: 992px) {
    .hero-title { font-size: 3rem; }
    .about-grid, .services-grid, .form-grid { grid-template-columns: 1fr; }
    .contact-details { flex-direction: column; gap: 20px; }
}
