:root {
    --dark-blue: #1a1a2e;
    --chocolate: #4a3636;
    --red: #ff2e63;
    --gradient-primary: linear-gradient(135deg, var(--dark-blue), var(--chocolate));
    --gradient-accent: linear-gradient(135deg, var(--red), #8b0000);
    --glow-color: rgba(255, 46, 99, 0.3);
    --ai-accent: #00ff88;
    --ai-glow: rgba(0, 255, 136, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark-blue);
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* AI-Inspired Background Animation */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(74, 54, 54, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 46, 99, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: backgroundPulse 15s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* Floating Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Enhanced Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    padding: 1rem 10%;
    background: rgba(26, 26, 46, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.navbar.hidden {
    transform: translateY(-100%);
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    background: var(--gradient-accent);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient-accent);
    filter: blur(20px);
    opacity: 0.3;
    z-index: -1;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links a i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.nav-links a:hover i {
    transform: translateY(-2px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--ai-accent);
}

/* Enhanced Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></svg>');
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    opacity: 0.2;
}

@keyframes gridMove {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-50%) translateY(-50%); }
}

.hero-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.ready-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

/* Enhanced Tech Stack */
.tech-stack {
    margin: 2rem 0;
}

.tech-stack span {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin-right: 1rem;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.tech-stack span:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--glow-color);
}

.tech-stack span::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.tech-stack span:hover::before {
    left: 100%;
}

/* Enhanced Portfolio Section */
.portfolio {
    padding: 100px 5%;
    background: var(--dark-blue);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.section-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.portfolio-container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.title-icon {
    display: inline-block;
    margin-right: 1rem;
    color: var(--ai-accent);
    animation: pulse 2s infinite;
}

.title-line {
    width: 100px;
    height: 3px;
    background: var(--gradient-accent);
    margin: 1rem auto 0;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 1.8rem;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.filter-btn:hover i {
    transform: translateY(-2px);
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: 0.5s;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--gradient-accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.2);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.portfolio-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-height: 400px;
}

.portfolio-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at var(--x, 50%) var(--y, 50%),
        rgba(0, 255, 136, 0.1) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover::before {
    opacity: 1;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 255, 136, 0.2);
}

.portfolio-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.portfolio-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #fff;
    position: relative;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: var(--ai-accent);
}

.portfolio-content p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.technologies span {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    font-size: 0.9rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.technologies span i {
    color: var(--ai-accent);
}

.technologies span:hover {
    background: rgba(0, 255, 136, 0.1);
    transform: translateY(-2px);
}

.portfolio-links {
    margin-top: auto;
    display: flex;
    gap: 1rem;
}

.portfolio-links .btn {
    flex: 1;
    text-align: center;
    padding: 0.8rem 1.5rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.portfolio-links .btn i {
    font-size: 1.1rem;
}

.portfolio-links .btn-primary {
    background: var(--gradient-accent);
    color: #fff;
    border: none;
}

.portfolio-links .btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.portfolio-links .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.2);
}

@media (max-width: 768px) {
    .portfolio {
        padding: 60px 20px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-item {
        min-height: 350px;
    }

    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Enhanced Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portfolio-item:nth-child(2) {
    animation-delay: 0.2s;
}

.portfolio-item:nth-child(3) {
    animation-delay: 0.4s;
}

.portfolio-item:nth-child(4) {
    animation-delay: 0.6s;
}

/* Loading Animation */
.portfolio-item.loading {
    position: relative;
    overflow: hidden;
}

.portfolio-item.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 25%,
        rgba(0, 255, 136, 0.2) 50%,
        transparent 75%
    );
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Enhanced Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-accent);
    color: #fff;
    box-shadow: 0 5px 15px var(--glow-color);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--glow-color);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    margin-left: 1rem;
}

/* Enhanced Hero Image Container */
.image-container {
    position: relative;
    width: 400px;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(26, 26, 46, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 136, 0.2);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.1);
    transition: all 0.3s ease;
}

.image-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 255, 136, 0.2);
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    transition: transform 0.5s ease;
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 255, 136, 0.2),
        rgba(255, 46, 99, 0.2)
    );
    mix-blend-mode: overlay;
    z-index: 3;
}

/* AI Frame */
.ai-frame {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
}

.corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid var(--ai-accent);
    opacity: 0.8;
}

.top-left {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
}

.top-right {
    top: 10px;
    right: 10px;
    border-left: none;
    border-bottom: none;
}

.bottom-left {
    bottom: 10px;
    left: 10px;
    border-right: none;
    border-top: none;
}

.bottom-right {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--ai-accent), transparent);
    animation: scanAnimation 3s ease-in-out infinite;
    opacity: 0.5;
}

@keyframes scanAnimation {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(400px);
    }
    100% {
        transform: translateY(0);
    }
}

/* AI Particles */
.ai-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.ai-particles::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at center, var(--ai-accent) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: particleFloat 20s linear infinite;
    opacity: 0.3;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* Tech Circles */
.tech-circles {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.tech-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--ai-accent);
    opacity: 0.3;
    animation: techCircleFloat 10s infinite linear;
}

.tech-circle:nth-child(1) {
    width: 150px;
    height: 150px;
    top: -20%;
    left: -20%;
    animation-delay: 0s;
}

.tech-circle:nth-child(2) {
    width: 100px;
    height: 100px;
    bottom: -10%;
    right: -10%;
    animation-delay: -3s;
}

.tech-circle:nth-child(3) {
    width: 80px;
    height: 80px;
    top: 50%;
    right: -5%;
    animation-delay: -6s;
}

@keyframes techCircleFloat {
    0% {
        transform: rotate(0deg) translate(20px) rotate(0deg);
    }
    100% {
        transform: rotate(360deg) translate(20px) rotate(-360deg);
    }
}

/* Data Streams */
.data-streams {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.stream {
    position: absolute;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--ai-accent), transparent);
    opacity: 0.5;
    animation: streamFlow 3s linear infinite;
}

.stream:nth-child(1) {
    height: 100px;
    left: 20%;
    animation-delay: 0s;
}

.stream:nth-child(2) {
    height: 150px;
    right: 30%;
    animation-delay: -1s;
}

.stream:nth-child(3) {
    height: 80px;
    left: 80%;
    animation-delay: -2s;
}

@keyframes streamFlow {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(400px);
    }
}

/* Enhanced AI Dots */
.ai-dots {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, var(--ai-accent) 1px, transparent 1px);
    background-size: 10px 10px;
    opacity: 0.3;
    animation: dotsFloat 10s infinite linear;
}

@keyframes dotsFloat {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .image-container {
        width: 300px;
        height: 300px;
    }

    @keyframes scanAnimation {
        50% {
            transform: translateY(300px);
        }
    }

    @keyframes streamFlow {
        100% {
            transform: translateY(300px);
        }
    }
}

/* Enhanced Contact Form */
.contact {
    padding: 100px 10%;
    background: var(--dark-blue);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--red);
    box-shadow: 0 0 15px var(--glow-color);
    outline: none;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-links a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-links a:hover {
    color: var(--red);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[data-aos] {
    opacity: 0;
    transition: all 0.8s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
    }

    .hero-image {
        width: 300px;
        height: 300px;
        margin-top: 2rem;
    }

    .tech-stack {
        justify-content: center;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .navbar {
        padding: 1rem 5%;
    }
    
    .navbar.scrolled {
        padding: 0.8rem 5%;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .portfolio {
        padding: 60px 5%;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-filters {
        flex-wrap: wrap;
        justify-content: center;
    }

    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    cursor: pointer;
}

.toggle-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.toggle-icon i {
    color: var(--ai-accent);
    font-size: 20px;
}

.toggle-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--ai-accent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    70% {
        transform: scale(1.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #fff;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1001;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    right: 0;
}

.menu-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--ai-accent);
}

.close-menu {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.menu-links {
    padding: 20px;
    flex: 1;
}

.menu-links a {
    display: flex;
    align-items: center;
    padding: 15px 0;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.menu-links a i {
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

.menu-links a:hover,
.menu-links a.active {
    color: var(--ai-accent);
}

.menu-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    color: #fff;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--ai-accent);
}

/* AI Circles Animation */
.ai-circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--ai-accent);
    opacity: 0.1;
    animation: circleFloat 20s infinite linear;
}

.circle:nth-child(1) {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.circle:nth-child(2) {
    width: 200px;
    height: 200px;
    top: 60%;
    left: 50%;
    animation-delay: -5s;
}

.circle:nth-child(3) {
    width: 150px;
    height: 150px;
    top: 30%;
    left: 70%;
    animation-delay: -10s;
}

@keyframes circleFloat {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(100px, 50px) rotate(180deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

/* Enhanced About Section Styles */
.about {
    padding: 100px 10%;
    background: var(--dark-blue);
    position: relative;
    overflow: hidden;
}

.ai-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background-image: linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: rotate(15deg);
    animation: gridMove 20s linear infinite;
}

.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.title-icon {
    color: var(--ai-accent);
    animation: pulse 2s infinite;
}

.title-line {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gradient-accent);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.bio-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.bio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at var(--x, 50%) var(--y, 50%),
        rgba(0, 255, 136, 0.1) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.3s;
}

.bio-card:hover::before {
    opacity: 1;
}

.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 20px;
    margin-bottom: 1rem;
}

.ai-badge i {
    color: var(--ai-accent);
}

.tech-interests {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.interest-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.interest-tag:hover {
    transform: translateY(-3px);
    background: rgba(0, 255, 136, 0.1);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2rem;
    color: var(--ai-accent);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    background: var(--gradient-accent);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 1rem;
    overflow: hidden;
}

.progress-bar {
    width: 0;
    height: 100%;
    background: var(--gradient-accent);
    transition: width 1.5s ease;
}

.skills-container {
    margin-top: 3rem;
}

.skills-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--ai-accent);
}

.skills-grid {
    display: grid;
    gap: 2rem;
}

.skill-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.skill-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress {
    width: 0;
    height: 100%;
    background: var(--gradient-accent);
    transition: width 1.5s ease;
}

/* Animations */
@keyframes gridMove {
    0% {
        transform: rotate(15deg) translateY(0);
    }
    100% {
        transform: rotate(15deg) translateY(-50%);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .about {
        padding: 60px 5%;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .skill-item {
        padding: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Add smooth scroll behavior to html */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Adjust based on navbar height */
}

/* AI-Inspired Animated Separator */
.ai-separator {
    height: 200px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, var(--dark-blue), rgba(26, 26, 46, 0.95));
}

.circuit-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.circuit-lines .line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--ai-accent), transparent);
    animation: circuitFlow 3s linear infinite;
}

.circuit-lines .line:nth-child(1) {
    top: 20%;
    width: 60%;
    left: -60%;
    animation-delay: 0s;
}

.circuit-lines .line:nth-child(2) {
    top: 50%;
    width: 80%;
    left: -80%;
    animation-delay: 1s;
}

.circuit-lines .line:nth-child(3) {
    top: 80%;
    width: 70%;
    left: -70%;
    animation-delay: 2s;
}

@keyframes circuitFlow {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(200%);
    }
}

.data-flow {
    position: absolute;
    width: 100%;
    height: 100%;
}

.data-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--ai-accent);
    border-radius: 50%;
    filter: blur(1px);
    animation: dataFloat 4s linear infinite;
}

.data-particle:nth-child(1) {
    top: 30%;
    left: -4px;
    animation-delay: 0s;
}

.data-particle:nth-child(2) {
    top: 60%;
    left: -4px;
    animation-delay: 1.3s;
}

.data-particle:nth-child(3) {
    top: 45%;
    left: -4px;
    animation-delay: 2.6s;
}

@keyframes dataFloat {
    0% {
        transform: translateX(0) translateY(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(calc(100vw + 4px)) translateY(-20px);
        opacity: 0;
    }
}

.pulse-rings {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ring {
    position: absolute;
    border: 2px solid var(--ai-accent);
    border-radius: 50%;
    animation: ringPulse 3s ease-out infinite;
    opacity: 0;
}

.ring:nth-child(1) {
    width: 40px;
    height: 40px;
    animation-delay: 0s;
}

.ring:nth-child(2) {
    width: 60px;
    height: 60px;
    animation-delay: 1s;
}

.ring:nth-child(3) {
    width: 80px;
    height: 80px;
    animation-delay: 2s;
}

@keyframes ringPulse {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Enhanced Footer */
.footer {
    position: relative;
    padding: 80px 5% 20px;
    background: var(--dark-blue);
    overflow: hidden;
}

.footer-blur-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 255, 136, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 46, 99, 0.05) 0%, transparent 50%);
    filter: blur(20px);
    z-index: 1;
}

.footer-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-section h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--ai-accent);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.footer-section nav {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-section nav a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section nav a:hover {
    color: var(--ai-accent);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tech-tags span {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    font-size: 0.9rem;
    color: #fff;
    transition: all 0.3s ease;
}

.tech-tags span:hover {
    background: rgba(0, 255, 136, 0.1);
    transform: translateY(-2px);
}

.footer-bottom {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: #fff;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--ai-accent);
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .footer {
        padding: 60px 20px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .tech-tags {
        justify-content: center;
    }
}

/* Achievements Section */
.achievements {
    padding: 100px 5%;
    background: var(--dark-blue);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.achievements-container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
}

.achievement-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.achievement-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 136, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.achievement-card:hover {
    transform: translateY(-10px);
    border-color: var(--ai-accent);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
}

.card-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at var(--x, 50%) var(--y, 50%),
        rgba(0, 255, 136, 0.1) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.achievement-card:hover .card-glow {
    opacity: 1;
}

.achievement-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.achievement-icon i {
    font-size: 1.5rem;
    color: var(--ai-accent);
}

.achievement-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 2px solid var(--ai-accent);
    opacity: 0;
    transition: all 0.3s ease;
}

.achievement-card:hover .achievement-icon::after {
    opacity: 1;
    transform: scale(1.1);
}

.achievement-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.achievement-card .year {
    color: var(--ai-accent);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.achievement-details {
    position: relative;
    padding-top: 1rem;
}

.tech-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--ai-accent), transparent);
    position: relative;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: var(--ai-accent);
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0%, 100% {
        transform: translateY(-50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateY(-50%) scale(1.5);
        opacity: 0.5;
    }
}

.achievement-data-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.data-line {
    position: absolute;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--ai-accent), transparent);
    opacity: 0.2;
    animation: dataLineFlow 3s linear infinite;
}

.data-line:nth-child(1) {
    left: 20%;
    animation-delay: 0s;
}

.data-line:nth-child(2) {
    left: 50%;
    animation-delay: -1s;
}

.data-line:nth-child(3) {
    left: 80%;
    animation-delay: -2s;
}

@keyframes dataLineFlow {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

/* Responsive Design for Achievements */
@media (max-width: 768px) {
    .achievements {
        padding: 60px 20px;
    }

    .achievement-cards {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .achievement-card {
        padding: 1.5rem;
    }
}

/* Achievement Card Enhancements */
.achievement-card .achievement-org {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    position: relative;
    padding-left: 1rem;
}

.achievement-card .achievement-org::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 100%;
    background: var(--ai-accent);
    border-radius: 2px;
}

/* Special styling for Co-founder card */
.achievement-card:first-child {
    background: linear-gradient(
        135deg,
        rgba(0, 255, 136, 0.1),
        rgba(255, 255, 255, 0.03)
    );
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.achievement-card:first-child .achievement-icon {
    background: rgba(0, 255, 136, 0.15);
}

.achievement-card:first-child .achievement-icon i {
    animation: starPulse 2s infinite;
}

@keyframes starPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.2) rotate(15deg);
    }
} 