:root {
    --bg-dark: #0a0a0a;
    --bg-secondary: #0f0f12;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --accent-primary: #00f2ff; /* Cyan Neon */
    --accent-secondary: #7000ff; /* Purple Neon */
    --accent-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Utilities */
.accent {
    color: var(--accent-primary);
}

.gradient-text {
    background: var(--accent-gradient);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-anim 3s ease infinite;
}

@keyframes gradient-anim {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.section {
    padding: 60px 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 2px;
    transform-origin: left;
    transition: transform 0.5s ease;
}

.section-title:hover::after {
    transform: scaleX(1.5);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 40px rgba(0, 242, 255, 0.1);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-heading);
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    border: none;
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.6);
    transform: translateY(-3px) scale(1.05);
}

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

.btn-secondary:hover {
    background: rgba(0, 242, 255, 0.1);
    transform: translateY(-2px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    position: relative;
    color: var(--text-secondary);
}

.nav-link.active, .nav-link:hover {
    color: var(--text-primary);
}

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

.nav-link.active::after, .nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 150px;
    padding-bottom: 80px;
}

.hero-bg-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

.glow-circle {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
    animation: pulse-glow 10s infinite alternate;
}

@keyframes pulse-glow {
    0% { transform: scale(1); opacity: 0.2; }
    100% { transform: scale(1.2); opacity: 0.3; }
}

.top-right {
    top: -100px;
    right: -100px;
    background: var(--accent-primary);
}

.bottom-left {
    bottom: -100px;
    left: -100px;
    background: var(--accent-secondary);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

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

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--accent-primary);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    background: rgba(0, 242, 255, 0.05);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.divider {
    color: var(--accent-secondary);
    margin: 0 0.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icons a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: all 0.3s;
}

.social-icons a:hover {
    color: var(--accent-primary);
    transform: translateY(-3px);
}

.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-image-container {
    position: relative;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.01));
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255,255,255,0.1);
    box-shadow: 0 0 50px rgba(0, 242, 255, 0.2);
    transition: transform 0.1s ease-out;
    perspective: 1000px;
}

.hero-img {
    width: 90%;
    height: 90%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--bg-dark);
}

.tech-badge {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--text-primary);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    animation: float 6s ease-in-out infinite;
}

.badge-1 {
    top: 20px;
    right: 20px;
    color: #61DAFB; /* React Blue */
}

.badge-2 {
    bottom: 40px;
    left: 20px;
    color: #42A5F5; /* Flutter Blueish */
    animation-delay: 3s;
}

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

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
}

.about-text h3 {
    color: var(--accent-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.stats-row {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-card {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.stat-label {
    color: var(--text-secondary);
}

/* Education Section */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--glass-border);
}

.timeline-item {
    margin-bottom: 2.5rem;
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: -35px;
    top: 20px;
    width: 12px;
    height: 12px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-primary);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
    box-shadow: 0 0 20px var(--accent-primary);
}

.timeline-content {
    position: relative;
}

.timeline-content .date {
    font-size: 0.9rem;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.timeline-content h4 {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.skill-category h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.skill-category h3 i {
    color: var(--accent-primary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    perspective: 1000px;
}

.skill-tag {
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.skill-tag.highlight {
    background: rgba(0, 242, 255, 0.1);
    color: var(--accent-primary);
    border: 1px solid rgba(0, 242, 255, 0.2);
}

.skill-tag:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Experience Section */
.experience-card {
    max-width: 900px;
    margin: 0 auto;
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
}

.exp-role h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.exp-role h4 {
    color: var(--accent-secondary);
    font-size: 1.1rem;
}

.exp-date {
    text-align: right;
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
}

.exp-body ul {
    list-style-type: none;
    padding-left: 0;
}

.exp-body ul li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 20px;
    color: var(--text-secondary);
}

.exp-body ul li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

.exp-body strong {
    color: var(--text-primary);
}

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

.service-card .icon-box {
    width: 60px;
    height: 60px;
    background: rgba(0, 242, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}

.service-card:hover .icon-box {
    background: var(--accent-primary);
    color: #000;
    transform: rotateY(360deg);
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

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

.project-card {
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
    transform: perspective(1000px);
    transition: transform 0.1s ease;
}

.project-card::after { /* Glare effect */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,0.1) 25%, transparent 30%);
    transform: translate(-100%);
    transition: transform 0.8s;
    pointer-events: none;
    z-index: 2;
}

.project-card:hover::after {
    transform: translate(100%);
    transition: transform 0.8s;
}

.project-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.tech-stack-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-stack-mini span {
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    color: var(--accent-primary);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.link-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.link-btn:hover {
    color: var(--accent-primary);
}

.highlight-project {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.15);
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.info-item i {
    color: var(--accent-primary);
    font-size: 1.2rem;
}

.social-icons.big a {
    font-size: 1.8rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.contact-form input:focus, 
.contact-form textarea:focus {
    border-color: var(--accent-primary);
}

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

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.back-to-top {
    width: 40px;
    height: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.back-to-top:hover {
    background: var(--accent-primary);
    color: #000;
}

/* Animation Classes */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries */
@media (max-width: 900px) {
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 2rem;
    }
    
    .hero-content {
        margin-top: 3rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }

    .stats-row {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .hero-image-container {
        width: 100%;
        max-width: 300px;
        height: auto;
        aspect-ratio: 1/1;
    }
    
    .glow-circle {
        width: 100%;
        max-width: 300px;
        height: auto;
        aspect-ratio: 1/1;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-secondary);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }

    .nav-links.active {
        left: 0;
    }
    
    .exp-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .exp-date {
        text-align: left;
    }
    
    .skills-grid, .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-bg-elements {
        display: none; /* Hide glow on very small screens to improve performance/cleanliness */
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .hero-btns {
        flex-direction: column;
        gap: 0.8rem;
        width: 100%; /* Ensure full width availability */
    }

    .btn {
        justify-content: center; /* Center text in vertically stacked buttons */
    }
    
    .section {
        padding: 40px 0;
    }
}
