:root {
    --primary: #3B82F6;
    --secondary: #F97316;
    --bg-dark: #050816;
    --bg-light: #0B1120;
    --text-main: #FFFFFF;
    --text-muted: #9CA3AF;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

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

h1, h2, h3, h4, h5, h6, .logo {
    font-family: 'Space Grotesk', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

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

.section {
    padding: 8rem 0;
}

/* Typography */
.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(135deg, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(59, 130, 246, 0.1);
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-primary-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    border: none;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary), #D946EF);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: var(--glass-bg);
    border-color: var(--text-main);
}

.btn-primary-sm {
    padding: 0.6rem 1.5rem;
    background: linear-gradient(90deg, var(--primary), #D946EF);
    color: white;
}

/* Custom Cursor */
.cursor {
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(249, 115, 22, 0.5);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background 0.3s;
}

.cursor-follower.hover {
    width: 60px;
    height: 60px;
    background: rgba(249, 115, 22, 0.1);
    border-color: transparent;
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    z-index: 10000;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(5, 8, 22, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

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

.nav-links a:not(.btn-primary-sm) {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s;
}

.nav-links a:not(.btn-primary-sm):hover {
    color: white;
}

.lang-flags {
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 1px solid var(--glass-border);
    padding-left: 1.5rem;
}

.lang-flags a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid var(--glass-border);
}

.lang-flags a:hover {
    transform: scale(1.1);
}

.lang-flags img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: white;
    transition: 0.3s;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-dark);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.4s;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mobile-nav-links a {
    font-size: 2rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
}

.mobile-flags {
    border-left: none;
    padding-left: 0;
    margin-top: 1rem;
    gap: 1.5rem;
}

.mobile-flags a {
    width: 36px;
    height: 36px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
}

.glow-1 {
    width: 500px;
    height: 500px;
    background: rgba(217, 70, 239, 0.4); /* Fuchsia */
    top: -150px;
    left: -150px;
    animation: float 10s infinite alternate;
}

.glow-2 {
    width: 500px;
    height: 500px;
    background: rgba(6, 182, 212, 0.3); /* Cyan */
    top: -150px;
    right: -150px;
    animation: float 8s infinite alternate-reverse;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
}

.hero-container {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 1;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 5px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(15px); opacity: 0; }
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.about-specialties h3 {
    margin-bottom: 1.5rem;
    color: white;
}

.about-specialties ul {
    list-style: none;
}

.about-specialties li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.about-specialties li::before {
    content: '→';
    color: var(--primary);
    margin-right: 10px;
}

/* Services Section */
.services {
    position: relative;
    overflow: hidden;
}

.services-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.services .container {
    position: relative;
    z-index: 1;
}

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

.service-card {
    text-align: center;
    padding: 3rem 2rem;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), #D946EF);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
}

.service-card:hover .service-icon {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 30px rgba(217, 70, 239, 0.4);
}

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

/* Tech Stack */
.tech-stack {
    padding: 4rem 0;
    background: var(--bg-light);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    overflow: hidden;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

.marquee-content span {
    font-size: 3rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: rgba(128, 128, 128, 0.5);
    -webkit-text-stroke: 1px var(--glass-border);
    margin: 0 2rem;
    transition: 0.3s;
}

.marquee-content span:hover {
    color: white;
    -webkit-text-stroke: 0;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

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

/* Experience */
.experience {
    position: relative;
    overflow: hidden;
}

.experience-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.experience .container {
    position: relative;
    z-index: 1;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-top: -2rem;
    margin-bottom: 4rem;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--glass-border);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 3rem;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 3rem;
}

.timeline-dot {
    position: absolute;
    top: 20px;
    width: 16px;
    height: 16px;
    background: var(--bg-dark);
    border: 2px solid var(--primary);
    border-radius: 50%;
    z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -8px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -8px;
}

.timeline-content {
    padding: 1.5rem;
}

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

.portfolio-item {
    padding: 1.5rem;
    overflow: hidden;
    cursor: pointer;
    border-radius: 24px;
    position: relative;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.portfolio-item:hover {
    transform: translateY(-12px);
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(59, 130, 246, 0.15);
}

.portfolio-img {
    width: 100%;
    height: 280px;
    background: var(--bg-light);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

/* Pseudo element for the image to scale without scaling the container */
.portfolio-img::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Overlay gradient for a modern dark feel */
.portfolio-img::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(5,8,22,0.8) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Background images for portfolio */
.portfolio-item:nth-child(1) .portfolio-img::before { background-image: url('../images/sybasys.jpg'); }
.portfolio-item:nth-child(2) .portfolio-img::before { background-image: url('https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80'); }
.portfolio-item:nth-child(3) .portfolio-img::before { background-image: url('https://images.unsplash.com/photo-1620712943543-bcc4688e7485?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80'); }
.portfolio-item:nth-child(4) .portfolio-img::before { background-image: url('https://images.unsplash.com/photo-1555066931-4365d14bab8c?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80'); }

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

.portfolio-item:hover .portfolio-img::after {
    opacity: 1;
}

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

.portfolio-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.portfolio-item:hover .portfolio-content h3 {
    color: var(--primary);
}

/* Add a modern arrow via pseudo-element */
.portfolio-content h3::after {
    content: '→';
    font-family: Arial, sans-serif;
    font-size: 1.2rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s ease;
}

.portfolio-item:hover .portfolio-content h3::after {
    opacity: 1;
    transform: translateX(0);
}

/* CTA Section */
.cta {
    position: relative;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.cta-banner {
    position: relative;
    text-align: center;
    padding: 5rem 2rem;
    z-index: 1;
}

.cta-banner h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.cta-btns {
    display: flex;
    justify-content: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

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

.contact-email {
    font-size: 1.5rem;
    font-family: 'Space Grotesk', sans-serif;
    color: white;
    margin-bottom: 2rem;
}

.socials {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: 0.3s;
}

.social-link:hover {
    background: var(--text-main);
    color: var(--bg-dark);
}

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: white;
    font-family: 'Inter', sans-serif;
    transition: 0.3s;
}

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

.w-full {
    width: 100%;
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 3rem; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .portfolio-item { text-align: center; }
    .portfolio-content { justify-content: center; flex-direction: column; text-align: center; gap: 10px; }
    .portfolio-content h3 { justify-content: center; flex-wrap: wrap; text-align: center; }
    .portfolio-content h3::after { opacity: 1; transform: translateX(0); }
    .nav-links { display: none; }
    .mobile-menu-btn { display: flex; }
    .timeline::before { left: 0; }
    .timeline-item { width: 100%; padding-left: 2rem !important; left: 0 !important; }
    .timeline-dot { left: -8px !important; }

    .hero-btns, .cta-btns {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    
    .btn-primary, .btn-secondary, .btn-primary-sm {
        width: 100%;
        padding: 1rem 2rem;
        margin: 0 auto;
        justify-content: center;
    }
}

.whatsapp-float {
    position: fixed;
    width: 65px;
    height: 65px;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.whatsapp-float img {
    width: 80%;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,.25);
    transition: transform .3s ease;
}

.whatsapp-float img:hover {
    transform: scale(1.08);
}
