/* ===== CSS Variables - Logo Colors ===== */
:root {
    --purple: #7B2CBF;
    --blue: #2E86DE;
    --cyan: #00D2FF;
    --dark-blue: #1A5490;
    --light-cyan: #90E0EF;
    --white: #FFFFFF;
    --gray-50: #F8F9FA;
    --gray-100: #F1F3F5;
    --gray-200: #E9ECEF;
    --gray-600: #495057;
    --gray-800: #212529;
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--white);
    overflow-x: hidden;
}

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

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    height: 50px;
    width: auto;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--purple), var(--blue));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(123, 44, 191, 0.2);
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(123, 44, 191, 0.3);
}

/* ===== Hero Section ===== */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, 
        rgba(123, 44, 191, 0.03) 0%, 
        rgba(46, 134, 222, 0.03) 50%, 
        rgba(0, 210, 255, 0.03) 100%);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--gray-800);
}

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

.hero-description {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--purple), var(--blue));
    color: white;
    box-shadow: 0 4px 15px rgba(123, 44, 191, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(123, 44, 191, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--blue);
    border: 2px solid var(--blue);
}

.btn-secondary:hover {
    background: var(--blue);
    color: white;
    transform: translateY(-2px);
}

/* ===== Neural Network Visualization ===== */
.hero-visual {
    max-width: 500px;
    margin: 0 auto;
}

.neural-network {
    padding: 2rem;
}

.network-svg {
    width: 100%;
    height: auto;
}

.node {
    animation: pulse 3s ease-in-out infinite;
}

.node:nth-child(1) { animation-delay: 0s; }
.node:nth-child(2) { animation-delay: 0.2s; }
.node:nth-child(3) { animation-delay: 0.4s; }
.node:nth-child(4) { animation-delay: 0.6s; }
.node:nth-child(5) { animation-delay: 0.8s; }
.node:nth-child(6) { animation-delay: 1s; }
.node:nth-child(7) { animation-delay: 1.2s; }
.node:nth-child(8) { animation-delay: 1.4s; }
.node:nth-child(9) { animation-delay: 1.6s; }

.output-node {
    animation: glow 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}

@keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 5px var(--cyan)); }
    50% { filter: drop-shadow(0 0 15px var(--cyan)); }
}

/* ===== Services Section ===== */
.services {
    padding: 80px 0;
    background: var(--white);
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--purple), var(--blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
}

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

.service-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--cyan);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.15);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--purple), var(--blue));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 1.75rem;
    color: white;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--gray-800);
}

.service-card p {
    color: var(--gray-600);
    line-height: 1.7;
}

/* ===== Portfolio Section ===== */
.portfolio {
    padding: 80px 0;
    background: var(--gray-50);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.portfolio-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(123, 44, 191, 0.15);
}

.portfolio-image {
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 2rem;
    border-bottom: 2px solid var(--gray-100);
}

.portfolio-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.portfolio-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--gray-800);
}

.portfolio-content p {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--purple), var(--blue));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.portfolio-link:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(123, 44, 191, 0.3);
}

.portfolio-placeholder-card {
    border: 2px dashed var(--gray-300);
    background: var(--gray-50);
}

.portfolio-placeholder-card .portfolio-image {
    background: var(--gray-50);
}

.portfolio-placeholder-card .portfolio-image i {
    font-size: 4rem;
    color: var(--gray-400);
}

.portfolio-placeholder-card h3 {
    color: var(--gray-500);
}

.portfolio-placeholder-card p {
    color: var(--gray-400);
}

/* ===== Footer ===== */
.footer {
    padding: 3rem 0;
    background: var(--gray-800);
    color: white;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-info {
    text-align: center;
}

.footer-info p {
    margin-bottom: 0.5rem;
    color: var(--gray-200);
}

.footer-email {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--cyan);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-email:hover {
    color: var(--light-cyan);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .logo {
        height: 40px;
    }
    
    .contact-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    

}

/* ===== Smooth Animations ===== */
@media (prefers-reduced-motion: no-preference) {
    .service-card,
    .btn {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
}
