@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Montserrat:wght@700;800&display=swap');

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

.snake-border {
    position: relative;
    padding: 2px;
    background: linear-gradient(90deg, #214dbd, #000000, #214dbd);
    background-size: 200% 200%;
    animation: snake 3s linear infinite;
    border-radius: 15px;
}

html {
    scroll-behavior: smooth;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    z-index: 9999;
    transition: width 0.1s ease;
}
:root {
    --primary: #214dbd; /* Blue */
    --primary-dark: #1a3da1;
    --secondary: #000000;
    --accent: #25D366; /* Green */
    --danger: #DC2626; /* Red */
    --background: #FFFFFF;
    --text: #000000;
    --text-muted: #666666;
    --glass: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.2s ease;
}

.main-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    background: var(--background);
    box-shadow: 0 0 50px rgba(33, 77, 189, 0.15);
    position: relative;
    min-height: 100vh;
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    z-index: 2000;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
}

body.dark-mode {
    --background: #000000; /* Black */
    --text: #FFFFFF; /* White */
    --text-muted: #A0A0A0;
    --secondary: #FFFFFF;
    --primary: #3B82F6; /* Brighter Blue for Dark Mode */
    --accent: #FFFFFF;
    --glass: rgba(0, 0, 0, 0.9);
    --glass-border: rgba(255, 255, 255, 0.1);
}

@keyframes glitch {
    0% { transform: translate(0); text-shadow: -2px 0 #214dbd, 2px 0 #000000; }
    25% { transform: translate(-2px, 2px); }
    50% { transform: translate(2px, -2px); text-shadow: 2px 0 #214dbd, -2px 0 #000000; }
    75% { transform: translate(-2px, -2px); }
    100% { transform: translate(0); }
}

.glitch {
    animation: glitch 0.5s infinite;
}

/* Scanline Effect - Subtle only in Dark Mode */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 10000;
    opacity: 0.05;
    display: none;
}

body.dark-mode .scanlines {
    display: block;
}

.system-logs {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 250px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 255, 65, 0.3);
    z-index: 1500;
    pointer-events: none;
    border-radius: 5px;
    backdrop-filter: blur(5px);
    display: none;
}

body.dark-mode .system-logs {
    display: block;
}

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

h1, h2, h3, .logo {
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -0.5px;
    font-weight: 800;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f1f5f9;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--secondary);
    font-weight: 700;
}

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

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
    background: var(--background);
    border-bottom: 1px solid var(--glass-border);
}

header.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

/* Hero Section */
.hero {
    padding: 180px 0 120px;
    background: radial-gradient(circle at 70% 30%, rgba(99, 102, 241, 0.05), transparent);
    position: relative;
    clip-path: none; /* Removing cyberpunk clip for enterprise clean look */
}

.hero-content {
    max-width: 800px;
}

.hero-tag {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    display: block;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(0, 102, 255, 0.39);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Services Grid */
.services {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    transform: scaleY(0);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 102, 255, 0.1);
}

body.dark-mode .card {
    background: #0D0D0D;
    border: 1px solid rgba(0, 255, 65, 0.3);
}

body.dark-mode .card:hover {
    border-color: #00FF41;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.2);
}

.card:hover::before {
    transform: scaleY(1);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 102, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

/* Portfolio Section */
.portfolio {
    padding: 100px 0;
}

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

.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 300px;
    box-shadow: var(--shadow);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--secondary), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.portfolio-overlay span {
    color: var(--accent);
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
}
.contact {
    padding: 100px 0;
    background-color: white;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

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

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input, textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
    background: #F8FAFC;
    transition: var(--transition);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}

/* Animations */
@keyframes glow {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

.bg-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.15) 0%, transparent 70%);
    filter: blur(50px);
    z-index: -1;
    animation: glow 10s infinite ease-in-out;
}

/* Stats Section */
.stats {
    padding: 60px 0;
    background: var(--secondary);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-item h2 {
    font-size: 3.5rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-weight: 500;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Testimonials */
.testimonials {
    padding: 100px 0;
    background: #f1f5f9;
}

.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    position: relative;
}

.testimonial-card i {
    position: absolute;
    top: -15px;
    right: 20px;
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.1;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

/* Filter Tabs */
.filter-btn {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    color: var(--text);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(0, 102, 255, 0.3);
}

#project-modal {
    display: none;
    pointer-events: auto;
}

#project-modal.active {
    display: block;
    opacity: 1;
}
.chatbot-toggler {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 102, 255, 0.4);
    z-index: 2000;
    transition: var(--transition);
}

.chatbot-toggler:hover {
    transform: scale(1.1);
}

.chatbot {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow);
    z-index: 2000;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.chatbot.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.chatbot-header {
    background: var(--primary);
    padding: 1.5rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-body {
    height: 400px;
    overflow-y: auto;
    padding: 1.5rem;
    background: #F8FAFC;
}

.chat-msg {
    margin-bottom: 1rem;
    max-width: 80%;
}

.chat-msg.bot {
    background: white;
    padding: 1rem;
    border-radius: 0 15px 15px 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.chat-msg.user {
    margin-left: auto;
    background: var(--primary);
    color: white;
    padding: 1rem;
    border-radius: 15px 15px 0 15px;
}

.chat-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.chat-btn {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.chat-btn:hover {
    background: var(--primary);
    color: white;
}
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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