:root {
    --bg-main: #060608;
    --bg-secondary: #0a0a0f;
    --text-main: #ffffff;
    --text-muted: #a0a0ab;
    --accent-blue: #2948ff;
    --accent-purple: #8338ec;
    --accent-glow: rgba(41, 72, 255, 0.5);
    
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

/* Mouse Follow Glow */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-glow) 0%, rgba(6,6,8,0) 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: -1;
    transition: transform 0.1s ease-out;
    opacity: 0.6;
}

/* Typography & Utilities */
h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 3rem;
    text-align: center;
}

.section-padding {
    padding: 100px 5%;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
    box-shadow: 0 4px 20px rgba(41, 72, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 30px rgba(131, 56, 236, 0.5);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.w-100 { width: 100%; }

/* Glassmorphism */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    padding: 2.5rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    z-index: 1000;
    background: rgba(6, 6, 8, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 5% 0;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 2;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-headline {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.hero-subheadline {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

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

.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-portrait {
    width: 350px;
    height: 450px;
    object-fit: cover;
    border-radius: 20px;
    position: relative;
    z-index: 2;
    filter: contrast(1.1) brightness(0.9);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* Hologram Rings */
.hologram-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 450px;
    height: 450px;
    border: 2px solid rgba(41, 72, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotateX(60deg);
    z-index: 1;
    animation: rotate 15s linear infinite;
    box-shadow: 0 0 20px rgba(41, 72, 255, 0.2), inset 0 0 20px rgba(41, 72, 255, 0.2);
}

.hologram-ring.ring-2 {
    width: 550px;
    height: 550px;
    border-color: rgba(131, 56, 236, 0.2);
    animation: rotate-reverse 20s linear infinite;
    box-shadow: 0 0 20px rgba(131, 56, 236, 0.1), inset 0 0 20px rgba(131, 56, 236, 0.1);
}

@keyframes rotate {
    0% { transform: translate(-50%, -50%) rotateX(60deg) rotateZ(0deg); }
    100% { transform: translate(-50%, -50%) rotateX(60deg) rotateZ(360deg); }
}

@keyframes rotate-reverse {
    0% { transform: translate(-50%, -50%) rotateX(70deg) rotateZ(360deg); }
    100% { transform: translate(-50%, -50%) rotateX(70deg) rotateZ(0deg); }
}

/* Background elements */
.bg-grid {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: 50px 50px;
    background-image: linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
    z-index: 0;
    pointer-events: none;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 2rem;
}

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

.about-stats {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    text-align: center;
}

.stat h3 {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat p {
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

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

.service-card {
    transition: var(--transition-smooth);
    transform-style: preserve-3d;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

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

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    height: 300px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    background-size: cover;
    background-position: center;
    color: inherit;
    text-decoration: none;
}

.portfolio-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(6,6,8,0.9), rgba(6,6,8,0.2));
    z-index: 1;
}

.portfolio-content {
    position: relative;
    z-index: 2;
}

.portfolio-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.portfolio-content p {
    color: #e0e0e0;
    font-weight: 500;
}

/* Elegant minimalist backgrounds for portfolio items */
.p-elite { background: linear-gradient(135deg, #0f1016 0%, #151828 100%); border: 1px solid rgba(41, 72, 255, 0.15); }
.p-saith { background: linear-gradient(135deg, #0f1016 0%, #1a1525 100%); border: 1px solid rgba(131, 56, 236, 0.15); }
.p-receptionist { background: linear-gradient(135deg, #0f1016 0%, #121a22 100%); border: 1px solid rgba(0, 180, 255, 0.15); }
.p-dashboard { background: linear-gradient(135deg, #0f1016 0%, #1f1515 100%); border: 1px solid rgba(255, 100, 100, 0.15); }

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.contact-details {
    list-style: none;
    margin-bottom: 2rem;
}

.contact-details li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-details span {
    color: var(--accent-purple);
    font-weight: 600;
    margin-right: 0.5rem;
}

.contact-details a {
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.contact-details a:hover {
    color: var(--accent-blue);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255,255,255,0.05);
    color: white;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-icon:hover {
    background: rgba(255,255,255,0.1);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: rgba(255,255,255,0.05);
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 5%;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
}

/* Animations & Interactions */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-headline {
        font-size: 2.5rem;
    }
    
    .about-grid, .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        display: none; /* simple mobile nav for now */
    }
}

/* Chatbot Wrapper & Toggle */
.chatbot-wrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 15px;
}

.chatbot-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(41, 72, 255, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
}

.chatbot-toggle-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(131, 56, 236, 0.6);
}

.chatbot-container {
    width: 380px;
    height: 600px;
    max-height: 75vh;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: #ffffff;
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.chatbot-container.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

@media (max-width: 480px) {
    .chatbot-container {
        width: calc(100vw - 40px);
        height: 500px;
    }
}
