/* ============================================
   RESET AND BASE STYLES
   - Reset default margins and paddings
   - Set global box-sizing to border-box
   - Define base font and background styles
=========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ============================================
   NAVIGATION STYLES
   - Fixed navigation bar with blur effect
   - Logo and nav links with hover animations
=========================================== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 2;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff0080, #00ffcc);
    transition: width 0.3s ease;
}

.logo:hover::after {
    width: 100%;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #ff0080, #00ffcc);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ============================================
   HERO SECTION STYLES
   - Full-screen hero with spotlight effect
   - Animated heading and CTA buttons
=========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.spotlight {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 0, 128, 0.2) 0%, rgba(0, 255, 204, 0.1) 40%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 1;
    transition: transform 0.1s ease-out;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 300;
    margin-bottom: 30px;
    letter-spacing: -0.03em;
    line-height: 0.9;
    background: linear-gradient(90deg, #ffffff, #a0a0a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.hero h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #ff0080, #00ffcc);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1s ease;
}

.hero.in-view h1::after {
    transform: scaleX(1);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 50px;
    font-weight: 300;
    max-width: 600px;
}

.cta-container {
    display: flex;
    gap: 20px;
    align-items: center;
}

.cta-primary {
    padding: 16px 32px;
    background: linear-gradient(90deg, #ff0080, #00ffcc);
    color: #0a0a0a;
    text-decoration: none;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #00ffcc, #ff0080);
    transition: left 0.5s ease;
    z-index: -1;
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 0, 128, 0.3);
}

.cta-primary:hover::before {
    left: 0;
}

.cta-secondary {
    padding: 16px 32px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    text-decoration: none;
    font-weight: 400;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 0, 128, 0.1), rgba(0, 255, 204, 0.1));
    transition: left 0.5s ease;
    z-index: -1;
}

.cta-secondary:hover {
    border-color: transparent;
    background: rgba(255, 255, 255, 0.05);
}

.cta-secondary:hover::before {
    left: 0;
}

/* ============================================
   STATS SECTION STYLES
   - Grid layout for statistics
   - Hover effects with subtle animations
=========================================== */
.stats {
    padding: 100px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ff0080, #00ffcc, transparent);
    opacity: 0.5;
}

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

.stat-item {
    position: relative;
    padding: 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.02);
    transform: translateY(-5px);
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 200;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #ff0080, #00ffcc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-item p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ============================================
   PORTFOLIO SECTION STYLES
   - Grid layout for portfolio items
   - Hover effects with overlays
=========================================== */
.portfolio {
    padding: 120px 0;
    position: relative;
}

.section-header {
    margin-bottom: 80px;
}

.section-title {
    font-size: 3rem;
    font-weight: 200;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, #ffffff, #a0a0a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
}

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

.portfolio-item {
    aspect-ratio: 16/9;
    background: #1a1a1a;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s ease;
    border-radius: 5px;
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 0, 128, 0.1), rgba(0, 255, 204, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.portfolio-item:hover {
    transform: scale(1.02);
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

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

.portfolio-overlay h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.portfolio-overlay p {
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    max-width: 300px;
}

/* ============================================
   SERVICES SECTION STYLES
   - Grid layout for service items
   - Hover animations with sliding effects
=========================================== */
.services {
    padding: 120px 0;
    background: #0f0f0f;
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ff0080, #00ffcc, transparent);
    opacity: 0.5;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.service-item {
    background: #0f0f0f;
    padding: 60px 40px;
    transition: all 0.3s ease;
    position: relative;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 128, 0.05), transparent);
    transition: left 0.5s ease;
}

.service-item:hover::before {
    left: 100%;
}

.service-item:hover {
    background: #1a1a1a;
    transform: translateY(-5px);
}

.service-number {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 20px;
    font-weight: 400;
}

.service-item h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.service-item p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

/* ============================================
   TESTIMONIALS SECTION STYLES
   - Grid layout for testimonials
   - Hover effects with side gradient
=========================================== */
.testimonials {
    padding: 120px 0;
    position: relative;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ff0080, #00ffcc, transparent);
    opacity: 0.5;
}

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

.testimonial-item {
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, #ff0080, #00ffcc);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.testimonial-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.testimonial-item:hover::before {
    opacity: 1;
}

.testimonial-content {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #ff0080, #00ffcc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}

.author-info h4 {
    font-weight: 500;
    margin-bottom: 5px;
}

.author-info p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ============================================
   CONTACT SECTION STYLES
   - Two-column layout for contact info and form
   - Form styling with hover effects
=========================================== */
.contact {
    padding: 120px 0;
    background: #0f0f0f;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ff0080, #00ffcc, transparent);
    opacity: 0.5;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: start;
}

.contact-info h2 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 30px;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, #ffffff, #a0a0a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-info p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    line-height: 1.6;
}

.contact-details {
    space-y: 20px;
}

.contact-item {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.contact-item h4 {
    font-weight: 500;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.9);
}

.contact-item p {
    color: rgba(255, 255, 255, 0.6);
}

.contact-form {
    background: rgba(255, 255, 255, 0.02);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    border-radius: 5px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 2px rgba(255, 0, 128, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(90deg, #ff0080, #00ffcc);
    color: #0a0a0a;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #00ffcc, #ff0080);
    transition: left 0.5s ease;
    z-index: -1;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 0, 128, 0.3);
}

.submit-btn:hover::before {
    left: 0;
}

/* ============================================
   FOOTER STYLES
   - Centered footer with logo and links
   - Gradient border and hover effects
=========================================== */
footer {
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ff0080, #00ffcc, transparent);
    opacity: 0.5;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #ff0080, #00ffcc);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-links a:hover::after {
    width: 100%;
}

.copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

/* ============================================
   FLOATING PARTICLES STYLES
   - Larger and brighter particles for enhanced visibility
   - Adjusted animation for a more pronounced effect
=========================================== */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 5px; /* Increased size for better visibility */
    height: 5px;
    background: rgba(255, 255, 255, 0.9); /* Brighter particles */
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.7); /* Added glow effect */
    animation: float 12s infinite linear; /* Slightly faster animation */
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1; /* Full opacity for most of the animation */
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(50px); /* Reduced horizontal drift */
        opacity: 0;
    }
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   - Adjust layouts for smaller screens
   - Hide navigation links and simplify layouts
=========================================== */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .nav-links {
        display: none;
    }

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

    .cta-container {
        flex-direction: column;
        align-items: stretch;
    }

    .section-title {
        font-size: 2rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .services-list {
        grid-template-columns: 1fr;
        gap: 1px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .spotlight {
        display: none;
    }
}

/* ============================================
   CUSTOM SCROLLBAR STYLES
   - Gradient-styled scrollbar for WebKit browsers
=========================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #ff0080, #00ffcc);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #ff0080, #00ffcc);
    opacity: 0.8;
}