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

:root {
    --primary-color: #00ff88;
    --secondary-color: #0099ff;
    --accent-color: #ff0066;
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --card-bg: rgba(15, 15, 30, 0.9);
    --border-glow: rgba(0, 255, 136, 0.5);
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
}

body {
    font-family: 'Exo 2', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 136, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 0, 102, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(0, 153, 255, 0.1) 0%, transparent 50%);
    background-attachment: fixed;
    animation: backgroundShift 10s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 2px solid var(--border-glow);
    z-index: 1000;
    padding: 0.8rem 0;
    transition: all 0.3s ease;
}

/* Reduce margin on Google AdSense banner div inside header */
header > div {
    margin: 0.5rem 0 0 0;
}

.btn-navbar-blue {
    background: var(--secondary-color);
    color: var(--text-primary);
    border-radius: 25px;
    padding: 0.8rem 2rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: auto;
    border: 2px solid var(--secondary-color);
    box-shadow: 0 0 15px var(--secondary-color);
}

@media (max-width: 768px) {
    .btn-navbar-blue {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
        margin-left: 3rem;
        margin-right: 0;
        border-radius: 15px;
        box-shadow: 0 0 10px var(--secondary-color);
    }
}

.btn-navbar-blue:hover {
    background: rgba(0, 153, 255, 0.8);
    border-color: rgba(0, 153, 255, 0.8);
    box-shadow: 0 0 25px rgba(0, 153, 255, 0.9);
    transform: translateY(-2px);
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.98);
    box-shadow: 0 5px 30px rgba(0, 255, 136, 0.3);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: 0.8rem;
    color: var(--primary-color);
    text-shadow: 0 0 20px var(--primary-color);
}

.nav-logo i {
    margin-right: 0.5rem;
    animation: robotPulse 2s ease-in-out infinite;
}

@keyframes robotPulse {
    0%, 100% { transform: scale(1); color: var(--primary-color); }
    50% { transform: scale(1.1); color: var(--secondary-color); }
}

.btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--dark-bg);
    box-shadow: 0 5px 25px rgba(0, 255, 136, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 35px rgba(0, 255, 136, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.btn-secondary:hover {
    background: rgba(0, 255, 136, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 35px rgba(0, 255, 136, 0.5);
}

.btn-secondary-gray {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 2px solid #888888;
    box-shadow: 0 0 20px rgba(128, 128, 128, 0.3);
}

.btn-secondary-gray:hover {
    background: rgba(136, 136, 136, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 35px rgba(128, 128, 128, 0.5);
}

/* Hero Section */
.hero-small {
    margin-top: 5px;
    padding: 0.5rem 0;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(255, 0, 102, 0.1));
    position: relative;
    /* Removed overflow hidden to prevent content clipping */
    overflow: visible;
}

.hero-small::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(0,255,136,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(10px, 10px); }
}

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

/* Sections */
.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.title-highlight {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
    position: relative;
}

.title-highlight::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; width: 100px; }
    50% { opacity: 1; width: 150px; }
}

/* Description Section */
.upcoming-section {
    padding: 1rem 0;
}

.upcoming-card {
    background: var(--card-bg);
    border: 2px solid var(--border-glow);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.2);
}

.upcoming-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 136, 0.1), transparent);
    animation: cardScan 3s linear infinite;
}

@keyframes cardScan {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.upcoming-card p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    position: relative;
    z-index: 2;
}

/* Projects Section */
.projects-section {
    padding: 4rem 0;
    background: rgba(5, 5, 5, 0.5);
}

.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    perspective: 1000px;
}

.carousel {
    position: relative;
    height: 400px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.project-card {
    background: var(--card-bg);
    border: 2px solid var(--border-glow);
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 20px 60px rgba(255, 0, 102, 0.4);
}

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

.project-card:hover::before {
    left: 100%;
}

.project-card h4 {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-shadow: 0 0 15px var(--primary-color);
    position: relative;
    z-index: 2;
}

.project-content {
    position: relative;
    z-index: 2;
}

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

.project-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.project-buttons .btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
}

/* Carousel Arrows */
.carousel-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel-arrow {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 50%;
    color: var(--dark-bg);
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.4);
}

.carousel-arrow:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 255, 136, 0.6);
}

/* Footer */
.footer {
    background: var(--darker-bg);
    border-top: 2px solid var(--border-glow);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

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

.footer-section {
    background: var(--card-bg);
    border: 2px solid var(--border-glow);
    border-radius: 0; /* square corners */
    padding: 1.5rem;
    box-shadow: 0 0 15px var(--border-glow);
}

.footer-section h4 {
    font-family: 'Orbitron', monospace;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section h4 i {
    font-size: 1.2rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 255, 136, 0.3);
    color: var(--text-secondary);
}

/* Mobile Responsiveness */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(5, 5, 5, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        backdrop-filter: blur(15px);
    }

    .nav-menu.active {
        left: 0;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .carousel-arrow.prev {
        left: -20px;
    }

    .carousel-arrow.next {
        right: -20px;
    }

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

    .project-card h4 {
        font-size: 1.5rem;
    }

    .project-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeInUp 0.6s ease forwards;
}

/* Particle effect */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: particleFloat 6s infinite ease-in-out;
    opacity: 0.3;
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
    50% { opacity: 0.3; }
    100% { transform: translateY(-100vh) translateX(50px); opacity: 0; }
}
