/* Root Variables */
:root {
    /* Colors */
    --primary-color: #00ff00;
    --secondary-color: #ff4444;
    --accent-color: #00ff88;
    --dark-bg: #0a0a0f;
    --darker-bg: #05050a;
    --card-bg: #1a1a2e;
    --text-light: #ffffff;
    --text-muted: #b0b0b0;
    --text-dark: #333333;
    --border-color: #333344;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    --gradient-secondary: linear-gradient(135deg, #ff4444 0%, #cc3333 100%);
    --gradient-accent: linear-gradient(135deg, #00ff88 0%, #00cc66 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    
    /* Spacing */
    --section-padding: 4rem 0;
    --container-padding: 0 2rem;
    --border-radius: 12px;
    
    /* Animations */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-light);
}

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

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.navbar {
    padding: 1rem 0;
}

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

.Name {
    order: 1;
    flex-shrink: 0;
}

.Name h1 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--text-light);
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    order: 2;
    margin-left: auto;
    margin: 0;
    padding: 0;
    align-items: center;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 0.5rem;
    order: 3;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-item {
    transition: all var(--transition-normal);
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: all var(--transition-normal);
    position: relative;
}

.nav-link:hover {
    color: var(--secondary-color);
}

.nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--secondary-color);
    animation: underlineExpand 0.3s ease;
}

@keyframes underlineExpand {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* Network Background Canvas */
.network-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.5;
}

#networkCanvas {
    width: 100%;
    height: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: radial-gradient(ellipse at center, rgba(0, 255, 76, 0.2) 0%, transparent 70%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
    align-content: center;
}

.hero-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.hero-profile {
    width: 250px;        /* adjust size here */
    height: 250px;
    border-radius: 50%; /* makes it circular */
    object-fit: cover;
    border: 3px solid #00ff00; /* optional green outline */
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    font-family: 'Orbitron', sans-serif;
    margin-left: 8rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 500;
    margin-left: 8rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
    margin-left: 8rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-left: 8rem;
}

/* Network Hub Animation */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
     margin-top: 140px;
}

.network-hub {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #00ff00; /* bright green */
}

.hub-center {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 0 30px rgba(0, 255, 76, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

.connection-point {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--card-bg);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    top: 50%;
    left: 50%;
    transform-origin: center;
    transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-150px) rotate(calc(-1 * var(--angle)));
    animation: orbit 10s linear infinite;
}

.connection-point::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 90px;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
    top: -90px;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 30px rgba(0, 255, 76, 0.5); }
    50% { box-shadow: 0 0 50px rgba(0, 255, 76, 0.5); }
}

@keyframes orbit {
    from { transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-150px) rotate(calc(-1 * var(--angle))); }
    to { transform: translate(-50%, -50%) rotate(calc(var(--angle) + 360deg)) translateY(-150px) rotate(calc(-1 * var(--angle) - 360deg)); }
}

/* Section Styles */
.section {
    padding: var(--section-padding);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: 'Orbitron', sans-serif;
}

.section-line {
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 0 auto;
    border-radius: 2px;
}

/* About Section */
.about-section {
    background: var(--darker-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-intro {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-highlights {
    display: grid;
    gap: 1.5rem;
}

.highlight-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    transition: all var(--transition-normal);
}

.highlight-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.2);
}

.highlight-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.highlight-item h4 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--gradient-dark);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
    font-family: 'Orbitron', sans-serif;
}

.stat-label {
    color: var(--text-muted);
    font-weight: 500;
}

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

.skill-category {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 76, 0.5);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

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

.category-header h3 {
    color: var(--text-light);
}

.skills-list {
    display: grid;
    gap: 1.5rem;
}

.skill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.skill-item span {
    color: var(--text-light);
    font-weight: 500;
    min-width: 150px;
}

.skill-bar {
    flex: 1;
    height: 8px;
    background: var(--darker-bg);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    width: 0;
    transition: width 1s ease-in-out;
}

/* Projects Section */
.projects-section {
    background: var(--darker-bg);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 255, 76, 0.5);
}

.project-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.project-title {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.project-description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.3rem 0.8rem;
    background: rgba(0, 255, 76, 0.4);
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--primary-color);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-details {
    display: grid;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

.contact-item h4 {
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: var(--text-muted);
    margin: 0;
}

/* Contact Form */
.contact-form-container {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: var(--darker-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    transition: all var(--transition-normal);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 255, 76, 0.5);
}

.form-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    pointer-events: none;
}

.form-group textarea + .form-icon {
    top: 1rem;
    transform: none;
}

.form-submit {
    justify-self: start;
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-info h3 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.footer-info p {
    color: var(--text-muted);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: all var(--transition-normal);
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 255, 76, 0.6);
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --container-padding: 0 1rem;
        --section-padding: 2rem 0;
    }

    .header {
        position: fixed;
    }

    .navbar {
        padding: 0.5rem 0.75rem;
    }

    /* Keep header items on one row: hamburger (left) then name */
    .nav-container {
        flex-direction: row;
        gap: 0.5rem;
        padding: 0 0.75rem;
        align-items: center;
        justify-content: flex-start;
    }

    /* Hamburger on the far left */
    .hamburger {
        display: flex;
        order: 1;
        margin-right: 0.75rem;
    }

    /* Site name next to hamburger */
    .Name {
        order: 2;
        flex: 1 1 auto;
        text-align: left;
    }

    .Name h1 {
        font-size: 1.15rem;
        margin: 0;
    }

    /* Nav becomes an absolute dropdown below header */
    .nav-menu {
        order: 3;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.98);
        margin: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.28s ease, padding 0.28s ease;
        box-shadow: 0 8px 24px rgba(0,0,0,0.35);
        z-index: 1500;
    }

    .nav-menu.active {
        max-height: 420px;
        padding: 0.6rem 0;
    }

    .nav-item {
        text-align: left;
        padding: 0.5rem 1rem;
        border-bottom: 1px solid var(--border-color);
        list-style: none;
    }

    .nav-item:last-child {
        border-bottom: none;
    }

    .nav-link {
        display: block;
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
    }

    .hero {
        min-height: auto;
        padding: 100px 0 2rem 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-header {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .hero-profile {
        width: 180px;
        height: 180px;
        margin: 0 auto;
    }

    .hero-title {
        font-size: 2.2rem;
        margin-left: 0;
        margin-bottom: 0.8rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        margin-left: 0;
        margin-bottom: 0.8rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-left: 0;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        margin-left: 0;
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }

    .hero-visual {
        margin-top: 2rem;
    }

    .network-hub {
        width: 280px;
        height: 280px;
    }

    .hub-center {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .connection-point {
        width: 45px;
        height: 45px;
        font-size: 1rem;
        transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-110px) rotate(calc(-1 * var(--angle)));
    }

    .connection-point::before {
        height: 70px;
        top: -70px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-intro {
        font-size: 1.1rem;
    }

    .about-stats {
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
    }

    .stat-item {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info h3 {
        font-size: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: 0 0.75rem;
    }

    .navbar {
        padding: 0.5rem 0;
    }

    .Name h1 {
        font-size: 1rem;
    }

    .hamburger span {
        width: 22px;
        height: 2.5px;
    }

    .nav-link {
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
    }

    .hero {
        padding: 80px 0 1rem 0;
    }

    .hero-profile {
        width: 140px;
        height: 140px;
    }

    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 0.6rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }

    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        line-height: 1.6;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.6rem;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 280px;
    }

    .hero-visual {
        margin-top: 1.5rem;
    }

    .network-hub {
        width: 220px;
        height: 220px;
    }

    .hub-center {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .connection-point {
        width: 38px;
        height: 38px;
        font-size: 0.85rem;
        transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-85px) rotate(calc(-1 * var(--angle)));
    }

    .connection-point::before {
        height: 55px;
        top: -55px;
    }

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

    .about-intro {
        font-size: 1rem;
    }

    .highlight-item {
        padding: 1rem;
        gap: 0.75rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .skill-item span {
        min-width: 120px;
        font-size: 0.9rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        padding: 1.5rem;
    }

    .project-title {
        font-size: 1.1rem;
    }

    .contact-form-container {
        padding: 1.5rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.8rem 0.8rem 0.8rem 2.5rem;
        font-size: 0.95rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Loading Animation for Skill Bars */
.skills-section.in-view .skill-progress {
    width: var(--progress-width);
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}
