:root {
    --color-bg-start: #0a0a1a;
    --color-blue: #2563eb;
    --color-purple: #9333ea;
    --color-white: #ffffff;
    --color-text-muted: #9ca3af;
    --font-main: 'Inter', sans-serif;
}

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

body, html {
    font-family: var(--font-main);
    color: var(--color-white);
    overflow-x: hidden;
    scroll-behavior: smooth;
    width: 100%;
}

.scroll-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background: linear-gradient(180deg, #0a0a1a 0%, #1e1b4b 50%, #172554 100%);
    transition: background 0.3s ease;
}

#cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(147,51,234,0.3) 0%, rgba(37,99,235,0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    transform: translate(-1000px, -1000px);
    transition: transform 0.1s ease-out;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 26, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links a {
    color: var(--color-white);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #c084fc;
}

.nav-toggle {
    display: none;
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(90deg, var(--color-blue), var(--color-purple));
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    color: white !important;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(147, 51, 234, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background 0.3s, border-color 0.3s;
    display: inline-block;
}

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

.gradient-text {
    background: linear-gradient(90deg, #93c5fd, #d8b4fe);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

section, header {
    padding: 80px 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
}

header.hero {
    align-items: center;
    text-align: left;
    padding-top: 150px;
    min-height: 90vh;
    flex-direction: row;
    justify-content: space-between;
    gap: 4rem;
}

.hero-content {
    flex: 1.2;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    animation: fadeIn 1.4s ease-out;
}

.hero-image img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(147, 51, 234, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    animation: fadeIn 1s ease-out;
}

.hero p {
    font-size: 1.3rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 0 3rem 0;
    line-height: 1.6;
    animation: fadeIn 1.2s ease-out;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
    animation: fadeIn 1.4s ease-out;
}

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

.services h2, .experience h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    background: linear-gradient(90deg, #fff, #9ca3af);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.services-grid {
    display: grid;
    /* Updated for perfect stacking on mobile */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(10px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(147, 51, 234, 0.4);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 2rem;
    background: linear-gradient(90deg, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.service-card h3 {
    font-size: 1.7rem;
    margin-bottom: 1.2rem;
    color: #c084fc;
}

.service-card p {
    color: var(--color-text-muted);
    line-height: 1.7;
    font-size: 1.05rem;
}

.experience {
    text-align: center;
    padding-top: 150px;
    padding-bottom: 150px;
}

.experience p {
    color: var(--color-text-muted);
    margin-bottom: 4rem;
    font-size: 1.2rem;
}

.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
    padding: 2.5rem 0;
    margin-bottom: 6rem;
    background: rgba(255, 255, 255, 0.01);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.marquee-content {
    display: inline-block;
    /* Slowed down marquee from 30s to 60s */
    animation: marquee 60s linear infinite;
}

.text-logo {
    font-size: 2rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.3);
    margin: 0 5rem;
    display: inline-block;
    vertical-align: middle;
    transition: color 0.3s, transform 0.3s;
}

.text-logo:hover {
    color: var(--color-white);
    transform: scale(1.1);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.experience-showcase {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
    width: 100%;
}

.showcase-img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact {
    align-items: center;
    padding-bottom: 100px;
}

.contact-box {
    background: rgba(15, 15, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    padding: 5rem;
    text-align: center;
    max-width: 900px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    width: 100%;
}

.contact-box h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.contact-box p {
    color: var(--color-text-muted);
    margin-bottom: 3.5rem;
    font-size: 1.25rem;
    line-height: 1.6;
}

/* Premium Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    text-align: left;
    background: rgba(255, 255, 255, 0.02);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-row .form-group {
    flex: 1;
}

.form-group.floating {
    position: relative;
}

.form-group.floating input,
.form-group.floating textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.2rem 1rem 0.6rem;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group.floating textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group.floating label {
    position: absolute;
    top: 1rem;
    left: 1.2rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.2s ease;
}

.form-group.floating input:focus,
.form-group.floating textarea:focus {
    outline: none;
    border-color: #c084fc;
    background: rgba(147, 51, 234, 0.05);
    box-shadow: 0 0 15px rgba(147, 51, 234, 0.2);
}

.form-group.floating input:focus ~ label,
.form-group.floating input:not(:placeholder-shown) ~ label,
.form-group.floating textarea:focus ~ label,
.form-group.floating textarea:not(:placeholder-shown) ~ label {
    top: 0.25rem;
    left: 1rem;
    font-size: 0.75rem;
    color: #c084fc;
}

.form-submit-btn {
    width: 100%;
    margin-top: 1rem;
    padding: 1.2rem !important;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-divider {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-divider::before, .contact-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.contact-divider span {
    padding: 0 1.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text-muted);
    letter-spacing: 2px;
}

.contact-details {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    font-size: 1.25rem;
    color: var(--color-white);
    text-decoration: none;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem 2rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: background 0.3s, transform 0.3s, border-color 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-link:hover {
    background: rgba(147, 51, 234, 0.2);
    border-color: rgba(147, 51, 234, 0.5);
    transform: translateY(-5px);
}

.form-status {
    margin-top: 1rem;
    text-align: center;
    font-weight: 600;
    min-height: 24px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}
.form-status.success { 
    color: #10b981; 
    padding: 2rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    margin-bottom: 3rem;
}
.form-status.error { color: #ef4444; }

footer {
    text-align: center;
    padding: 3rem;
    color: var(--color-text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- MOBILE RESPONSIVENESS AND BUG FIXES --- */

@media (max-width: 1024px) {
    header.hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
        gap: 3rem;
    }
    .hero h1 { font-size: 3.5rem; }
    .hero-content { flex: none; width: 100%; }
    .hero p { margin: 0 auto 3rem; }
    .hero-actions { justify-content: center; }
}

@media (max-width: 768px) {
    body { cursor: default !important; }
    #cursor-glow { display: none; }
    
    nav { padding: 1rem 5%; }
    .nav-toggle { display: block; }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 26, 0.95);
        flex-direction: column;
        padding: 2rem;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(20px);
    }
    
    .nav-links.active { display: flex; }
    
    .nav-links a {
        margin: 1.5rem 0;
        font-size: 1.2rem;
    }
    
    .hero h1 { font-size: 2.5rem; }
    
    /* Reconfigured mobile buttons to be inline and fit on one line */
    .hero-actions { 
        flex-direction: row; 
        flex-wrap: nowrap; 
        gap: 0.5rem; 
        justify-content: center; 
        width: 100%;
    }
    
    .btn-primary, .btn-secondary {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
        flex: 1; /* Stretch evenly */
        text-align: center;
    }
    
    .services h2, .experience h2, .contact-box h2 { font-size: 2.2rem; }
    
    /* Enforces single column stacking on small devices */
    .services-grid { grid-template-columns: 1fr; }
    
    .service-card { padding: 2rem; }
    
    .contact-box { padding: 2rem 1rem; }
    .contact-form { padding: 2rem 1.5rem; }
    
    .form-row { flex-direction: column; gap: 1.5rem; } /* Stack inputs on mobile */
    
    .contact-details { flex-direction: column; gap: 1rem; }
    .contact-link { justify-content: center; width: 100%; font-size: 1rem; }
    
    .text-logo { font-size: 1.5rem; margin: 0 2rem; }
    
    /* Slowed down mobile marquee */
    .marquee-content { animation: marquee 30s linear infinite; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.1rem; }
    .hero-actions { flex-wrap: wrap; }
    .btn-primary, .btn-secondary { flex: 1 1 100%; padding: 0.75rem; font-size: 1rem; } /* Stack on ultra-small screens like iPhone SE to prevent text cutoff */
}
