/* Palette: Deep Purple, Electric Blue, Dark Void, White */
:root {
    --purple: #764BA2;
    --blue: #667EEA;
    --dark: #1a1a2e;
    --darker: #16213e;
    --white: #ffffff;
    --text: #e0e0e0;
    
    --grad-main: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
    --font-head: 'Exo 2', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--dark);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Polygon Backgrounds */
.poly-bg {
    position: fixed;
    z-index: -1;
    background: var(--grad-main);
    opacity: 0.15;
    filter: blur(80px);
}
.p1 { top: -20%; left: -10%; width: 50vw; height: 50vw; border-radius: 50%; }
.p2 { bottom: -20%; right: -10%; width: 60vw; height: 60vw; border-radius: 50%; }
.p3 { top: 30%; right: 20%; width: 40vw; height: 40vw; border-radius: 50%; background: #00d2ff; }
.p4 { bottom: 10%; left: 10%; width: 30vw; height: 30vw; background: #928DAB; }

.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section-padding { padding: 120px 0; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; height: auto; display: block; border-radius: 12px; }

/* Header */
.tech-header { padding: 20px 0; background: rgba(26, 26, 46, 0.8); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid rgba(255,255,255,0.05); }
.header-row { display: flex; justify-content: space-between; align-items: center; }

.logo { font-family: var(--font-head); font-size: 1.8rem; font-weight: 300; color: var(--white); letter-spacing: 1px; }
.bold { font-weight: 700; background: var(--grad-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.vertex-nav a { margin-left: 30px; font-weight: 600; color: #a0a0a0; font-size: 0.95rem; }
.vertex-nav a:hover, .vertex-nav a.active { color: var(--white); text-shadow: 0 0 10px rgba(102, 126, 234, 0.5); }

.mobile-menu-btn { display: none; background: transparent; border: none; color: var(--white); font-size: 1.5rem; cursor: pointer; }

/* Mobile Overlay */
.mobile-overlay { position: fixed; top: 0; right: -100%; width: 100%; height: 100%; background: var(--darker); z-index: 2000; display: flex; flex-direction: column; justify-content: center; align-items: center; transition: 0.4s cubic-bezier(0.77, 0, 0.175, 1); }
.mobile-overlay.active { right: 0; }
.close-menu { position: absolute; top: 20px; right: 20px; background: none; border: none; font-size: 2rem; color: var(--white); cursor: pointer; }
.mobile-overlay a { font-family: var(--font-head); font-size: 2rem; color: var(--white); margin: 15px 0; font-weight: 700; }

@media (max-width: 900px) {
    .vertex-nav { display: none; }
    .mobile-menu-btn { display: block; }
}

/* Hero */
.hero-poly { height: 85vh; display: flex; align-items: center; position: relative; }
.hero-flex { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center; }

.badge-tech { background: rgba(255,255,255,0.1); color: var(--blue); padding: 5px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; letter-spacing: 1px; margin-bottom: 20px; display: inline-block; border: 1px solid rgba(102, 126, 234, 0.3); }
.hero-text h1 { font-family: var(--font-head); font-size: 4rem; line-height: 1.1; margin-bottom: 25px; color: var(--white); }
.hero-text p { font-size: 1.2rem; color: #ccc; margin-bottom: 40px; max-width: 500px; }

.btn-group { display: flex; gap: 20px; }
.btn-vertex { background: var(--grad-main); color: var(--white); padding: 15px 35px; border-radius: 8px; font-weight: 600; font-family: var(--font-head); transition: 0.3s; border: none; cursor: pointer; box-shadow: 0 10px 20px rgba(118, 75, 162, 0.3); }
.btn-vertex:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(118, 75, 162, 0.5); }
.btn-glass { background: rgba(255,255,255,0.05); color: var(--white); padding: 15px 35px; border-radius: 8px; font-weight: 600; border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(5px); transition: 0.3s; }
.btn-glass:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

.code-card { background: #1e1e2f; border-radius: 12px; padding: 25px; box-shadow: 0 20px 50px rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.05); transform: rotate(3deg); transition: 0.5s; }
.code-card:hover { transform: rotate(0); }
.code-header { display: flex; gap: 8px; margin-bottom: 20px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.red { background: #ff5f56; } .yellow { background: #ffbd2e; } .green { background: #27c93f; }
pre { color: #d4d4d4; font-family: monospace; font-size: 0.9rem; overflow-x: auto; }

/* Services */
.section-title h2 { font-family: var(--font-head); font-size: 2.5rem; color: var(--white); margin-bottom: 15px; }
.poly-line { width: 80px; height: 4px; background: var(--grad-main); border-radius: 2px; margin-bottom: 50px; }
.poly-line.left { margin: 20px 0 40px 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.poly-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); padding: 40px; border-radius: 16px; transition: 0.3s; backdrop-filter: blur(10px); }
.poly-card:hover { transform: translateY(-10px); background: rgba(255,255,255,0.06); border-color: var(--blue); }
.icon-wrap { font-size: 3rem; margin-bottom: 20px; }
.poly-card h3 { font-family: var(--font-head); font-size: 1.3rem; margin-bottom: 15px; color: var(--white); }

/* Tech Strip */
.tech-strip { background: rgba(255,255,255,0.02); padding: 30px 0; text-align: center; border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); margin-top: 50px; }
.tech-strip span { margin: 0 20px; font-family: var(--font-head); font-weight: 700; color: #666; font-size: 1.2rem; }

/* About Split */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text h1 { font-family: var(--font-head); font-size: 3rem; margin-bottom: 20px; color: var(--white); }
.check-list { list-style: none; margin-top: 30px; }
.check-list li { margin-bottom: 15px; padding-left: 25px; position: relative; color: var(--white); }
.check-list li::before { content: '>'; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
.image-wrapper { position: relative; }
.image-wrapper::after { content: ''; position: absolute; inset: 0; border: 2px solid var(--purple); border-radius: 12px; transform: translate(15px, 15px); z-index: -1; }

/* Services List Page */
.services-list { display: flex; flex-direction: column; gap: 30px; }
.s-card { background: rgba(255,255,255,0.02); padding: 40px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); transition: 0.3s; }
.s-card.active { border-color: var(--blue); background: rgba(102, 126, 234, 0.05); }
.s-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.s-header h3 { font-family: var(--font-head); font-size: 1.5rem; color: var(--white); margin: 0; }
.s-header .icon { font-size: 2rem; }
.tech-tags { display: flex; gap: 10px; list-style: none; margin-top: 20px; }
.tech-tags li { background: rgba(255,255,255,0.1); padding: 5px 12px; border-radius: 20px; font-size: 0.8rem; color: #ccc; }

/* Contact Form */
.contact-card-glass { background: rgba(255,255,255,0.03); backdrop-filter: blur(20px); border-radius: 20px; border: 1px solid rgba(255,255,255,0.1); padding: 60px; display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; }
.c-left h2 { font-family: var(--font-head); font-size: 2.5rem; color: var(--white); margin-bottom: 20px; }
.c-details { margin-top: 40px; color: #aaa; }
.c-details strong { color: var(--white); display: block; margin-bottom: 5px; }
.c-details p { margin-bottom: 20px; }

.vertex-form .form-row { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 20px; }
.vertex-form input, .vertex-form select, .vertex-form textarea { width: 100%; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); color: var(--white); padding: 15px; border-radius: 8px; font-family: var(--font-body); transition: 0.3s; }
.vertex-form input:focus, .vertex-form textarea:focus, .vertex-form select:focus { border-color: var(--blue); outline: none; background: rgba(0,0,0,0.5); }
.full { width: 100%; margin-top: 10px; }

/* Legal */
.legal-glass { max-width: 800px; margin: 0 auto; background: rgba(255,255,255,0.02); padding: 60px; border-radius: 12px; }
.legal-glass h1 { color: var(--white); font-family: var(--font-head); }

/* Footer */
.vertex-footer { border-top: 1px solid rgba(255,255,255,0.05); padding: 60px 0 20px; margin-top: 100px; }
.footer-content { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.f-info h4 { font-family: var(--font-head); color: var(--white); margin-bottom: 5px; letter-spacing: 1px; }
.f-links a { margin-left: 20px; color: #888; }
.f-links a:hover { color: var(--blue); }
.copyright { text-align: center; font-size: 0.8rem; color: #555; }

@media (max-width: 900px) {
    .hero-flex, .about-split, .contact-card-glass { grid-template-columns: 1fr; text-align: center; }
    .hero-text h1 { font-size: 2.5rem; }
    .grid-3 { grid-template-columns: 1fr; }
    .hero-visual { order: -1; }
    .footer-content { flex-direction: column; gap: 20px; text-align: center; }
    .vertex-form .form-row { grid-template-columns: 1fr; }
}