:root {
    --bg-color: #0a0a0a; /* Deep Black */
    --text-primary: #ffffff; /* Clean White */
    --text-secondary: #999999;
    --accent-color: #ff1e1e; /* Bright Red */
    --accent-dark: #b30000; /* Deep Red */
    --accent-glow: rgba(255, 30, 30, 0.3);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.06);
    --font-main: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    cursor: none; /* Custom cursor */
}

body {
    background-color: var(--bg-color);
    /* Smooth radial glow to avoid sharp edges */
    background-image: 
        radial-gradient(circle at 80% 20%, rgba(255, 30, 30, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(179, 0, 0, 0.1) 0%, transparent 50%);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Cursor */
.cursor {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s;
    box-shadow: 0 0 15px var(--accent-color);
}

.cursor-follower {
    width: 30px;
    height: 30px;
    border: 1px solid var(--accent-color);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out, width 0.2s, height 0.2s;
}

.cursor-hover .cursor {
    width: 15px;
    height: 15px;
}

.cursor-hover .cursor-follower {
    width: 50px;
    height: 50px;
    background: var(--accent-glow);
    border-color: transparent;
}

/* Typography & Utility */
.highlight {
    color: var(--accent-color);
    text-shadow: 0 0 15px rgba(255, 30, 30, 0.4);
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: none;
}

.btn-primary {
    background: linear-gradient(135deg, #ff1e1e, #b30000);
    color: #ffffff;
    box-shadow: 0 4px 15px var(--accent-glow);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 30, 30, 0.5);
    background: linear-gradient(135deg, #ff3333, #cc0000);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--accent-color);
}

.btn-secondary:hover {
    background: rgba(255, 30, 30, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(255, 30, 30, 0.2);
}

.btn-block {
    display: block;
    width: 100%;
    font-family: inherit;
    font-size: 1rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: background 0.3s, padding 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    padding: 15px 0;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

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

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

.btn-nav {
    border: 1px solid var(--glass-border);
    padding: 8px 20px;
    border-radius: 20px;
}
.btn-nav::after {
    display: none;
}
.btn-nav:hover {
    background: var(--accent-color);
    color: #fff !important;
    border-color: transparent;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: none;
    color: var(--text-primary);
}

/* Sections */
section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding-top: 150px;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

/* Intro Screen */
#intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-color);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
}

.intro-name {
    font-size: 8rem;
    font-weight: 800;
    letter-spacing: 20px;
    margin-left: 20px; /* Offset the tracking */
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px var(--accent-glow);
    text-align: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-secondary);
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: var(--accent-color);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

body.intro-active {
    overflow: hidden;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.hero .subtitle {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 30px;
    font-weight: 800;
}

.hero .description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
}

.cta-group {
    display: flex;
    gap: 20px;
}

/* Animated Floating Box for right side */
.visual-box {
    width: 350px;
    height: 450px;
    background: linear-gradient(135deg, rgba(255, 30, 30, 0.15), rgba(0, 0, 0, 0.5));
    border: 1px solid var(--accent-color);
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 50px rgba(255, 30, 30, 0.2), inset 0 0 20px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    animation: floatVisual 6s infinite ease-in-out alternate;
}

.visual-box i {
    font-size: 6rem;
    color: var(--accent-color);
    text-shadow: 0 0 30px var(--accent-glow);
}

@keyframes floatVisual {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-20px) rotate(3deg); }
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-secondary);
}

/* Marquee Carousel */
.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    background: var(--accent-color);
    color: #fff;
    padding: 12px 0;
    position: relative;
    margin: 40px 0;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(255, 30, 30, 0.2);
}

.marquee-content {
    display: flex;
    width: fit-content;
    animation: marquee 15s linear infinite;
}

.marquee-content span {
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
    padding: 0 20px;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
}

.marquee-content span i {
    margin: 0 20px;
    font-size: 0.8rem;
    color: #fff;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-33.33%); } /* Since we copied it 3 times */
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color));
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 0;
}

.service-card:hover {
    transform: translateY(-10px);
    background: var(--glass-hover);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 30, 30, 0.3);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    text-shadow: 0 0 15px var(--accent-glow);
}

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

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.service-features {
    list-style: none;
}

.service-features li {
    margin-bottom: 10px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.service-features li i {
    color: var(--accent-color);
    font-size: 0.8rem;
}

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

.portfolio-item {
    overflow: hidden;
    position: relative;
    padding: 15px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(255, 30, 30, 0.15);
}

.portfolio-img {
    height: 250px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: transform 0.5s ease;
}

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease, backdrop-filter 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    backdrop-filter: blur(4px);
}

.portfolio-link {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 1.5rem;
    transform: scale(0.5);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s ease;
    box-shadow: 0 0 15px var(--accent-glow);
}

.portfolio-item:hover .portfolio-link {
    transform: scale(1);
    animation: pulsePlay 1.5s infinite;
}

@keyframes pulsePlay {
    0% { box-shadow: 0 0 0 0 rgba(255, 30, 30, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255, 30, 30, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 30, 30, 0); }
}

.portfolio-link:hover {
    background: #fff;
    color: var(--accent-color);
}

.portfolio-info {
    padding: 20px 5px 5px;
}

.portfolio-info .category {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
    color: var(--accent-color);
}

.portfolio-info h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 50px;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.contact-details .detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 500;
}

.social-links {
    margin-top: 40px;
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s;
    background: transparent;
}

.social-links a:hover {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--accent-glow);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
    cursor: none;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.contact-form input::placeholder,
.contact-form select::placeholder,
.contact-form textarea::placeholder {
    color: #666666;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.9rem;
    background: var(--bg-color);
}

/* Responsive */
@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
        padding: 30px;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 60px;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .cta-group {
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(10px);
        padding: 20px 0;
        border-bottom: 1px solid var(--glass-border);
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .hamburger {
        display: block;
        cursor: pointer;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .cursor, .cursor-follower {
        display: none;
    }
    
    html {
        cursor: auto;
    }
}

/* Water Bubbles Effect */
.bubbles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bubble {
    position: absolute;
    bottom: -100px;
    background: rgba(255, 30, 30, 0.05); /* Tinted with theme red */
    border: 1px solid rgba(255, 30, 30, 0.2);
    border-radius: 50%;
    box-shadow: inset 0 0 20px rgba(255, 30, 30, 0.1);
    backdrop-filter: blur(2px);
    animation: rise linear infinite;
    opacity: 0;
}

@keyframes rise {
    0% {
        bottom: -100px;
        transform: translateX(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        bottom: 110vh;
        transform: translateX(-50px) scale(1.2);
        opacity: 0;
    }
}
