/* Global Styles & Variables */
:root {
    --bg-color: #0B0E14;
    /* Deep dark blue/black */
    --bg-alt: #151A23;
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --primary-color: #4F46E5;
    /* Indigo */
    --primary-gradient: linear-gradient(135deg, #4F46E5 0%, #8B5CF6 100%);
    --secondary-gradient: linear-gradient(135deg, #06B6D4 0%, #3B82F6 100%);
    --accent: #F472B6;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius: 16px;
    --font-main: 'Outfit', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: #fff;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

/* Utilities */
.text-gradient {
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(79, 70, 229, 0.5);
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: background 0.3s, padding 0.3s;
}

header.scrolled {
    background: rgba(11, 14, 20, 0.95);
    backdrop-filter: blur(20px);
    padding: 15px 0;
    border-bottom: 1px solid var(--glass-border);
}

header.scrolled .logo-img {
    height: 170px;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.logo-img {
    height: 280px;
    width: auto;
    transition: height 0.3s ease;
    filter: drop-shadow(0 0 15px rgba(79, 70, 229, 0.4));
}

.navbar ul {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

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

.btn-contact {
    background: var(--glass-bg);
    padding: 8px 24px;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    color: white !important;
}

.btn-contact:hover {
    background: var(--primary-gradient);
    border-color: transparent;
}

.btn-contact::after {
    display: none;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: white;
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 280px;
    padding-bottom: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, rgba(11, 14, 20, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(79, 70, 229, 0.1);
    color: #818CF8;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 16px;
}

.hero-image {
    position: relative;
}

.hero-image img {
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
}

.floating-img {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Code Terminal Animation */
.code-wrapper {
    background: #1E1E1E;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    min-height: 300px;
    font-family: 'Courier New', Courier, monospace;
    overflow: hidden;
}

.code-header {
    background: #252526;
    padding: 10px 15px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.dot.red {
    background: #FF5F56;
}

.dot.yellow {
    background: #FFBD2E;
}

.dot.green {
    background: #27C93F;
}

.code-content {
    padding: 20px;
    color: #d4d4d4;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Syntax Highlighting */
.token-keyword {
    color: #C586C0;
}

/* Pink/Purple */
.token-function {
    color: #DCDCAA;
}

/* Yellow */
.token-string {
    color: #CE9178;
}

/* Orange/Brown */
.token-variable {
    color: #9CDCFE;
}

/* Light Blue */
.token-comment {
    color: #6A9955;
}

/* Green */
.token-number {
    color: #B5CEA8;
}

/* Light Green */
.cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background-color: #fff;
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    background: var(--bg-alt);
    border-color: rgba(79, 70, 229, 0.3);
}

.service-card .icon-box {
    width: 60px;
    height: 60px;
    background: var(--bg-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #818CF8;
    margin: 0 auto 24px auto;
    border: 1px solid var(--glass-border);
}

.service-card h3 {
    margin-bottom: 16px;
    font-size: 1.25rem;
}

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

/* About */
.bg-darker {
    background: var(--bg-alt);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--glass-border);
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.about-content p {
    margin-bottom: 24px;
    color: var(--text-secondary);
}

.feature-list {
    margin-top: 32px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-weight: 500;
}

@media (min-width: 1024px) {
    .feature-list li strong {
        min-width: 220px;
        display: inline-block;
    }
}

.feature-list li i {
    color: #10B981;
    /* Emerald/Success */
}

/* CTA */
.cta-section {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(rgba(11, 14, 20, 0.8), rgba(11, 14, 20, 0.9)), url('https://images.unsplash.com/photo-1519389950473-47ba0277781c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    color: #e2e8f0;
    margin-bottom: 40px;
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 50px;
    box-shadow: var(--shadow-lg);
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.info-item i {
    width: 50px;
    height: 50px;
    background: rgba(79, 70, 229, 0.1);
    color: #818CF8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.info-item h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.info-item p {
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: auto;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--bg-alt);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.social-links a:hover {
    background: var(--primary-gradient);
    border-color: transparent;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--bg-alt);
    border: 1px solid var(--glass-border);
    padding: 14px 20px;
    border-radius: 8px;
    color: white;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #818CF8;
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.footer-brand p {
    color: var(--text-secondary);
}

.copyright p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .feature-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .feature-list li strong {
        margin-bottom: 2px;
        color: white;
        /* Ensure label pops */
    }
}

@media (max-width: 968px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-image {
        margin-top: 40px;
    }

    /* Tablet: Keep side-by-side, but compact */
    .about-container {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        text-align: left;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .about-container {
        grid-template-columns: 1fr;
        /* Stack on mobile */
    }

    .feature-list li {
        flex-direction: row;
        /* Return to row on mobile since full width */
        align-items: flex-start;
    }

    .hamburger {
        display: block;
        position: relative;
        z-index: 1001;
    }


    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .navbar ul {
        position: absolute;
        left: -100%;
        top: 100%;
        flex-direction: column;
        background-color: var(--bg-alt);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 40px 0;
        border-bottom: 1px solid var(--glass-border);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .navbar ul.active {
        left: 0;
    }

    .nav-link {
        font-size: 1.2rem;
    }

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

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

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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