/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --bg-color: #0a0a0a;
    --bg-light: #ffffff;
    --card-bg: #161616;
    --card-light: #f5f5f5;
    --text-color: #e0e0e0;
    --text-dark: #000000;
    --accent-color: #00ff88;
    --accent-purple: #6366f1;
    --secondary-text: #a0a0a0;
}

html.light-mode {
    --bg-color: #ffffff;
    --card-bg: #f5f5f5;
    --text-color: #1a1a1a;
    --accent-color: #00cc6a;
    --secondary-text: #666666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-purple));
    width: 0%;
    z-index: 999;
    transition: width 0.1s ease;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-purple));
    border: none;
    color: #000;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 101;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.5);
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: rgba(10, 10, 10, 0.95);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #333;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

html.light-mode .navbar {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: #ddd;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 2px;
}

.nav-links { display: flex; gap: 30px; }
.nav-links a {
    position: relative;
    transition: color 0.3s;
}

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

.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--accent-color); }

.btn-nav {
    border: 2px solid var(--accent-color);
    padding: 8px 20px;
    border-radius: 5px;
    color: var(--accent-color);
    font-weight: 600;
    transition: all 0.3s;
}

.btn-nav:hover { 
    background: var(--accent-color); 
    color: #000;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}

.hamburger { display: none; font-size: 1.5rem; cursor: pointer; }

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 8%;
    min-height: 90vh;
    gap: 40px;
}

.hero-text h4 { color: var(--accent-color); font-size: 1.2rem; }
.hero-text h1 { 
    font-size: 3.5rem; 
    margin: 10px 0; 
    line-height: 1.1;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-text h3 { font-size: 1.5rem; color: var(--secondary-text); margin-bottom: 20px; }
.hero-text p { max-width: 500px; color: var(--secondary-text); margin-bottom: 30px; }

.btn-main {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-purple));
    color: #000;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
}

.btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.5);
}

.socials { margin-bottom: 30px; }
.socials a { 
    font-size: 1.5rem; 
    margin-right: 20px; 
    color: var(--secondary-text);
    transition: all 0.3s;
}
.socials a:hover { 
    color: var(--accent-color);
    transform: translateY(-3px);
}

.hero-img img {
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--accent-color);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
    animation: float 3s ease-in-out infinite;
}

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

/* Tech Display Animation */
.tech-display {
    position: relative;
    width: 350px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.animated-grid {
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    border: 2px solid rgba(0, 255, 136, 0.2);
    box-shadow: 
        0 0 30px rgba(0, 255, 136, 0.2),
        inset 0 0 30px rgba(0, 255, 136, 0.1);
    animation: gridPulse 3s ease-in-out infinite;
}

.animated-grid::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(99, 102, 241, 0.2);
    top: -10px;
    left: -10px;
    animation: gridRotate 8s linear infinite;
}

.animated-grid::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px dashed rgba(0, 255, 136, 0.15);
    bottom: -10px;
    right: -10px;
    animation: gridRotateReverse 12s linear infinite;
}

@keyframes gridPulse {
    0%, 100% { 
        box-shadow: 
            0 0 30px rgba(0, 255, 136, 0.2),
            inset 0 0 30px rgba(0, 255, 136, 0.1);
    }
    50% { 
        box-shadow: 
            0 0 50px rgba(0, 255, 136, 0.4),
            inset 0 0 50px rgba(0, 255, 136, 0.2);
    }
}

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

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

/* Floating Icons */
.floating-icons {
    position: absolute;
    width: 350px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-item {
    position: absolute;
    width: 60px;
    height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 136, 0.1);
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 10px;
    font-size: 1.8rem;
    color: var(--accent-color);
    animation: orbitIcon 20s linear infinite;
    cursor: pointer;
    transition: all 0.3s;
}

.icon-item:hover {
    background: rgba(0, 255, 136, 0.2);
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
    transform: scale(1.2);
}

.icon-item span {
    font-size: 0.65rem;
    margin-top: 3px;
    font-weight: 600;
}

@keyframes orbitIcon {
    0% {
        transform: rotate(calc(var(--i) * 60deg)) translateY(-145px) rotate(calc(var(--i) * -60deg));
    }
    100% {
        transform: rotate(calc(var(--i) * 60deg + 360deg)) translateY(-145px) rotate(calc(var(--i) * -60deg - 360deg));
    }
}

/* Sections */
.section { padding: 80px 8%; }
.bg-darker { background-color: #111; }

html.light-mode .bg-darker {
    background-color: #f0f0f0;
}

.section-title { 
    font-size: 2.5rem; 
    margin-bottom: 50px; 
    text-align: center;
    position: relative;
}
.section-title::after {
    content: ''; 
    display: block; 
    width: 60px; 
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-purple)); 
    margin: 10px auto;
    border-radius: 2px;
}

/* Skills Tags */
.skills-grid { 
    margin-top: 30px; 
    display: flex; 
    flex-wrap: wrap; 
    gap: 15px; 
}
.skill-tag {
    background: rgba(0, 255, 136, 0.1);
    padding: 8px 15px; 
    border-radius: 20px;
    border: 1px solid var(--accent-color);
    font-size: 0.9rem;
    transition: all 0.3s;
    cursor: pointer;
}
.skill-tag:hover { 
    background: var(--accent-color);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
}

/* Experience & Education Cards */
.timeline, .grid-2 { display: grid; gap: 30px; }
.grid-2 { grid-template-columns: 1fr 1fr; }

.card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.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;
}

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

.card:hover { 
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 255, 136, 0.2);
}
.card h3 { font-size: 1.3rem; margin-bottom: 5px; }
.card h4 { color: var(--secondary-text); font-weight: 400; font-size: 1rem; }
.date { 
    display: block; 
    font-size: 0.85rem; 
    color: var(--accent-color); 
    margin-bottom: 15px;
    font-weight: 600;
}
.card ul { padding-left: 20px; list-style-type: disc; color: #ccc; font-size: 0.95rem; }
.card ul li { margin-bottom: 8px; }

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

.project-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

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

.project-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 15px 30px rgba(0, 255, 136, 0.2);
    transform: translateY(-10px);
}

.project-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.project-header i {
    font-size: 2rem;
    color: var(--accent-color);
}

.project-tag {
    background: rgba(0, 255, 136, 0.2);
    color: var(--accent-color);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.project-card p {
    color: var(--secondary-text);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.project-tech {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.project-tech span {
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent-color);
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
}

/* Contact Form */
#contact {
    text-align: center;
}

.contact-form {
    max-width: 600px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    background: var(--card-bg);
    border: 1px solid rgba(0, 255, 136, 0.2);
    color: var(--text-color);
    padding: 15px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--secondary-text);
}

/* Footer */
.footer-socials {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-link {
    width: 50px;
    height: 50px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--accent-color);
    color: #000;
    transform: translateY(-5px);
}

.copyright { 
    margin-top: 50px; 
    color: #555; 
    font-size: 0.8rem; 
}

.heart {
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .navbar .nav-links {
        display: none; 
        position: absolute; 
        top: 100%; 
        left: 0; 
        width: 100%;
        background: var(--card-bg); 
        text-align: center; 
        padding: 20px; 
        flex-direction: column;
        gap: 15px;
    }
    .navbar .nav-links.active { display: flex; }
    .hamburger { display: block; }
    
    .hero { 
        flex-direction: column-reverse; 
        text-align: center; 
        padding-top: 40px; 
    }
    .hero-text h1 { font-size: 2.5rem; }
    .tech-display {
        width: 250px;
        height: 250px;
    }
    .animated-grid {
        width: 250px;
        height: 250px;
    }
    .icon-item {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }
    @keyframes orbitIcon {
        0% {
            transform: rotate(calc(var(--i) * 60deg)) translateY(-115px) rotate(calc(var(--i) * -60deg));
        }
        100% {
            transform: rotate(calc(var(--i) * 60deg + 360deg)) translateY(-115px) rotate(calc(var(--i) * -60deg - 360deg));
        }
    }
    .hero-img img { 
        width: 250px; 
        height: 250px; 
        margin-bottom: 30px; 
    }
    .hero-text p { margin: 0 auto 30px auto; }
    .grid-2 { grid-template-columns: 1fr; }
    .section { padding: 50px 5%; }
    .section-title { font-size: 2rem; }
    
    .contact-form {
        max-width: 100%;
    }
    
    .theme-toggle {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}
