/* Anviam Design System & Main Styles */
:root {
    --bg-dark: #0f111a;
    --bg-card: #181b29;
    --primary: #4f46e5;
    /* Indigo 600 */
    --primary-glow: #4338ca;
    --accent: #06b6d4;
    /* Cyan 500 */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: #2d3748;
    --gradient-hero: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --max-width: 1200px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    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: var(--transition);
}

ul {
    list-style: none;
}

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Utilities */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gradient-hero);
    color: #fff;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.6);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* Sections */
section {
    padding: 5rem 0;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background: rgba(15, 17, 26, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: -1px;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

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

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

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
    background: radial-gradient(circle at top right, #1e2235, #0f111a);
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Animated Background Grid */
.hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image:
        linear-gradient(rgba(79, 70, 229, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 70, 229, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg);
    animation: gridMove 20s linear infinite;
    z-index: 0;
    opacity: 0.4;
}

@keyframes gridMove {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) translateY(50px);
    }
}

.hero-content {
    flex: 1;
    z-index: 2;
    position: relative;
    padding-right: 2rem;
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -2px;
    text-shadow: 0 0 30px rgba(79, 70, 229, 0.3);
}

.hero h1 span {
    background: linear-gradient(to right, #4f46e5, #06b6d4, #4f46e5);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shine 4s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.8;
    border-left: 3px solid var(--accent);
    padding-left: 1.5rem;
}

/* Hero Visual (Enhanced 3D) */
.hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    height: 600px;
    /* Consistently take space */
}

.hero-visual::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, transparent 70%);
    filter: blur(40px);
}

.server-stack {
    width: 300px;
    height: 460px;
    background: rgba(24, 27, 41, 0.8);
    border: 1px solid rgba(79, 70, 229, 0.3);
    border-radius: 20px;
    box-shadow:
        0 0 50px rgba(79, 70, 229, 0.1),
        inset 0 0 20px rgba(79, 70, 229, 0.05);
    position: relative;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    transform-style: preserve-3d;
}

.server-rack-unit {
    flex: 1;
    background: linear-gradient(90deg, #1e2235 0%, #252a40 100%);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    padding: 0 15px;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.server-rack-unit::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: translateX(-100%);
    animation: shimmer 3s infinite;
}

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

    100% {
        transform: translateX(100%);
    }
}

.status-lights {
    display: flex;
    gap: 6px;
}

.light {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #444;
    transition: all 0.3s ease;
}

.light.active {
    background: #00ff88;
    box-shadow: 0 0 8px #00ff88;
}

.light.processing {
    background: #06b6d4;
    box-shadow: 0 0 8px #06b6d4;
    animation: pulsate 1s infinite alternate;
}

@keyframes pulsate {
    0% {
        opacity: 0.5;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Floating Tech Icons */
.floating-icon {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px;
    color: var(--text-main);
    font-size: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    animation: floatIcon 6s ease-in-out infinite;
}

.icon-1 {
    top: 20%;
    right: 20%;
    animation-delay: 0s;
    color: #61DAFB;
}

/* React color */
.icon-2 {
    bottom: 25%;
    right: 15%;
    animation-delay: 2s;
    color: #F0DB4F;
}

/* JS color */
.icon-3 {
    top: 15%;
    left: 10%;
    animation-delay: 4s;
    color: #FF9900;
}

/* AWS color */
.icon-4 {
    bottom: 20%;
    left: 5%;
    animation-delay: 1s;
    color: #333;
    background: #fff;
}

/* GitHub/Code */

@keyframes floatIcon {
    0% {
        transform: translateY(0) rotate(0deg);
    }

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

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* Moving particles */
.particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
    animation: floatParticle 5s infinite linear;
}

.particles span:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.particles span:nth-child(2) {
    top: 70%;
    left: 80%;
    animation-delay: 1s;
}

.particles span:nth-child(3) {
    top: 40%;
    left: 60%;
    animation-delay: 2.5s;
}

@keyframes floatParticle {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

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

/* About Section */
.about-section {
    position: relative;
    background: #0f111a;
}

.about-wrapper {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-content {
    flex: 1;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.about-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.about-content h2 span {
    color: var(--accent);
}

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

.about-points {
    margin-bottom: 2.5rem;
}

.about-points li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.about-points i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 5px;
}

.about-points h5 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.about-visual {
    flex: 1;
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.stat-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.stat-card.highlight {
    background: var(--gradient-hero);
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.stat-card.highlight p {
    color: rgba(255, 255, 255, 0.9);
}

.about-blob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.3;
    z-index: 1;
    filter: blur(50px);
}

/* Domain Search (removed) */
/* Features (renamed/updated in structure) */


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

.feature-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.feature-card h3 {
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 25px;
    border: 1px solid var(--border);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(79, 70, 229, 0.15);
}

.popular-tag {
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--primary);
    color: #fff;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: 600;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    margin: 1.5rem 0;
    color: #fff;
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.features-list {
    margin: 2rem 0;
    text-align: left;
}

.features-list li {
    margin-bottom: 1rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-list li i {
    color: var(--accent);
}

/* Footer */
footer {
    background: #0b0d14;
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border);
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    color: #fff;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: var(--text-muted);
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.bottom-bar {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px)
    }

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

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

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

.why-item {
    text-align: center;
    padding: 2rem;
}

.why-item i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 20px;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 50%;
}

.why-item h4 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.why-item p {
    color: var(--text-muted);
}

/* Technologies */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-items: center;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.tech-item:hover {
    color: var(--primary);
    transform: translateY(-5px);
}

.tech-item i {
    font-size: 3rem;
}

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

.portfolio-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--primary);
}

.portfolio-img {
    height: 220px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.portfolio-content {
    padding: 1.5rem;
}

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

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

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

.testimonial-card {
    background: #1e2235;
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.testimonial-card .stars {
    color: #ffd700;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.testimonial-card h4 {
    color: #fff;
    margin-bottom: 0.2rem;
}

.testimonial-card .role {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.info-item i {
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-item h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

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

.contact-form {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    background: #0b0d14;
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: 10px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero {
        flex-direction: column;
        padding-top: 120px;
        text-align: center;
    }

    .hero-content {
        width: 100%;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .about-wrapper {
        flex-direction: column;
        gap: 3rem;
    }

    .hero-visual {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin: 4rem auto 0;
        width: 100%;
        max-width: 400px;
        height: 400px;
    }

    .server-stack {
        width: 200px;
        height: 300px;
    }

    .nav-links {
        display: none;
        /* simple mobile hide for now */
    }

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