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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #d1d5db;
    background-color: #111827;
    background-image: 
        /* Circuit board grid */
        linear-gradient(90deg, rgba(34, 197, 94, 0.03) 1px, transparent 1px),
        linear-gradient(0deg, rgba(34, 197, 94, 0.03) 1px, transparent 1px),
        /* Subtle circuit traces */
        linear-gradient(45deg, transparent 49%, rgba(34, 197, 94, 0.02) 50%, transparent 51%),
        linear-gradient(-45deg, transparent 49%, rgba(34, 197, 94, 0.02) 50%, transparent 51%);
    background-size: 40px 40px, 40px 40px, 60px 60px, 60px 60px;
    position: relative;
}

/* Circuit board overlay with chips and components */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        /* Microchips */
        radial-gradient(circle at 15% 25%, rgba(34, 197, 94, 0.1) 0%, transparent 8px),
        radial-gradient(circle at 85% 75%, rgba(34, 197, 94, 0.1) 0%, transparent 6px),
        radial-gradient(circle at 75% 15%, rgba(34, 197, 94, 0.08) 0%, transparent 4px),
        radial-gradient(circle at 25% 85%, rgba(34, 197, 94, 0.08) 0%, transparent 5px),
        /* Circuit traces */
        linear-gradient(90deg, transparent 30%, rgba(34, 197, 94, 0.05) 31%, rgba(34, 197, 94, 0.05) 32%, transparent 33%),
        linear-gradient(0deg, transparent 60%, rgba(34, 197, 94, 0.05) 61%, rgba(34, 197, 94, 0.05) 62%, transparent 63%),
        linear-gradient(45deg, transparent 40%, rgba(34, 197, 94, 0.03) 41%, rgba(34, 197, 94, 0.03) 42%, transparent 43%);
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 200px 200px, 200px 200px, 150px 150px;
    pointer-events: none;
    z-index: 0;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(34, 197, 94, 0.2);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

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

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #22c55e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo a:hover {
    color: #16a34a;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #d1d5db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #22c55e;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: #22c55e;
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #22c55e;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    color: #d1d5db;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        /* Circuit traces */
        linear-gradient(90deg, transparent 49%, rgba(34, 197, 94, 0.08) 50%, transparent 51%),
        linear-gradient(0deg, transparent 49%, rgba(34, 197, 94, 0.08) 50%, transparent 51%),
        /* Data flow lines */
        linear-gradient(45deg, transparent 49%, rgba(34, 197, 94, 0.05) 50%, transparent 51%);
    background-size: 80px 80px, 80px 80px, 120px 120px;
    animation: circuitFlow 30s linear infinite;
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.highlight {
    color: #22c55e;
    font-weight: 600;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #22c55e;
    color: #ffffff;
    border: 1px solid #22c55e;
}

.btn-primary:hover {
    background: #16a34a;
    border-color: #16a34a;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #22c55e;
    border: 1px solid #22c55e;
}

.btn-secondary:hover {
    background: #22c55e;
    color: #ffffff;
    transform: translateY(-2px);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-placeholder {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: #22c55e;
    border: 2px solid #22c55e;
    position: relative;
    overflow: hidden;
}

.profile-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        /* Circuit pattern */
        linear-gradient(90deg, transparent 49%, rgba(34, 197, 94, 0.1) 50%, transparent 51%),
        linear-gradient(0deg, transparent 49%, rgba(34, 197, 94, 0.1) 50%, transparent 51%);
    background-size: 20px 20px;
    animation: circuitFlow 20s linear infinite;
}

.profile-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #22c55e;
    position: relative;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #22c55e;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #22c55e;
    border-radius: 2px;
}

/* About Section */
.about {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        /* Circuit traces */
        linear-gradient(90deg, transparent 49%, rgba(34, 197, 94, 0.03) 50%, transparent 51%),
        linear-gradient(0deg, transparent 49%, rgba(34, 197, 94, 0.03) 50%, transparent 51%);
    background-size: 60px 60px;
    pointer-events: none;
}

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

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #d1d5db;
    line-height: 1.7;
}

.education {
    margin-top: 2rem;
}

.education h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #22c55e;
}

.education-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #16a34a;
    margin-bottom: 0.5rem;
}

.education-item p {
    color: #9ca3af;
    font-size: 1rem;
}

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

.stat-item {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #22c55e;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: #d1d5db;
    font-weight: 500;
}

/* Experience Section */
.experience {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    position: relative;
}

.experience::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        /* Circuit traces */
        linear-gradient(90deg, transparent 49%, rgba(34, 197, 94, 0.03) 50%, transparent 51%),
        linear-gradient(0deg, transparent 49%, rgba(34, 197, 94, 0.03) 50%, transparent 51%);
    background-size: 60px 60px;
    pointer-events: none;
}

.experience-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.experience-item {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    padding: 2.5rem;
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.experience-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.experience-header {
    margin-bottom: 1.5rem;
}

.experience-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #22c55e;
    margin-bottom: 0.5rem;
}

.experience-company h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #16a34a;
    margin-bottom: 0.25rem;
}

.experience-duration {
    color: #9ca3af;
    font-size: 0.9rem;
    font-weight: 500;
}

.experience-description p {
    color: #d1d5db;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.experience-highlights ul {
    list-style: none;
    padding: 0;
}

.experience-highlights li {
    color: #d1d5db;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.experience-highlights li::before {
    content: '→';
    color: #22c55e;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Current Position Section */
.current-position {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    position: relative;
}

.current-position::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        /* Circuit traces */
        linear-gradient(90deg, transparent 49%, rgba(34, 197, 94, 0.04) 50%, transparent 51%),
        linear-gradient(0deg, transparent 49%, rgba(34, 197, 94, 0.04) 50%, transparent 51%);
    background-size: 60px 60px;
    pointer-events: none;
}

.current-position-content {
    max-width: 800px;
    margin: 0 auto;
}

.current-position-item {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    padding: 3rem;
    border: 2px solid rgba(34, 197, 94, 0.3);
    border-radius: 16px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.current-position-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
}

.current-position-header {
    margin-bottom: 1.5rem;
}

.current-position-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #22c55e;
    margin-bottom: 0.5rem;
}

.current-position-company h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #16a34a;
    margin-bottom: 0.25rem;
}

.current-position-duration {
    color: #9ca3af;
    font-size: 1rem;
    font-weight: 500;
}

.current-position-description p {
    color: #d1d5db;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.current-position-highlights ul {
    list-style: none;
    padding: 0;
}

.current-position-highlights li {
    color: #d1d5db;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.current-position-highlights li::before {
    content: '→';
    color: #22c55e;
    font-weight: bold;
    position: absolute;
    left: 0;
}

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

.skill-category {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    padding: 2rem;
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.skill-category h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #22c55e;
    text-align: center;
}

.skill-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, #4b5563 0%, #6b7280 100%);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
    min-width: 0;
}

.skill-item span {
    font-weight: 500;
    color: #d1d5db;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}


.skill-item i {
    font-size: 1.5rem;
    color: #22c55e;
    flex-shrink: 0;
}

/* Projects Section */
.projects {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    position: relative;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        /* Circuit traces */
        linear-gradient(90deg, transparent 49%, rgba(34, 197, 94, 0.03) 50%, transparent 51%),
        linear-gradient(0deg, transparent 49%, rgba(34, 197, 94, 0.03) 50%, transparent 51%);
    background-size: 60px 60px;
    pointer-events: none;
}

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

.project-card {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        /* Circuit pattern */
        linear-gradient(90deg, transparent 49%, rgba(0, 0, 0, 0.1) 50%, transparent 51%),
        linear-gradient(0deg, transparent 49%, rgba(0, 0, 0, 0.1) 50%, transparent 51%);
    background-size: 15px 15px;
    animation: circuitFlow 20s linear infinite;
}

.image-placeholder {
    font-size: 3rem;
    color: #ffffff;
    z-index: 1;
}

.project-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #22c55e;
}

.project-content p {
    color: #d1d5db;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.tech-tag {
    background: #22c55e;
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

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

.project-link {
    color: #22c55e;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #16a34a;
}

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

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #22c55e;
}

.contact-info p {
    color: #d1d5db;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-items {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #d1d5db;
}

.contact-item i {
    color: #22c55e;
    font-size: 1.2rem;
    width: 20px;
}

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

.social-link {
    width: 45px;
    height: 45px;
    background: #22c55e;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #16a34a;
    transform: translateY(-3px);
}

.contact-form {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    padding: 2rem;
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: #4b5563;
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    font-size: 1rem;
    color: #d1d5db;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 5px rgba(34, 197, 94, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    color: #d1d5db;
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(34, 197, 94, 0.2);
}

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

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(17, 24, 39, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.2);
        padding: 2rem 0;
        border-top: 1px solid rgba(34, 197, 94, 0.2);
    }

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

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

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

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

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

    .about-stats {
        flex-direction: row;
        justify-content: space-around;
    }

    .stat-item {
        padding: 1rem;
    }

    .experience-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .experience-item {
        padding: 1.5rem;
    }

    .stat-item h3 {
        font-size: 2rem;
    }

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

    .skill-items {
        grid-template-columns: 1fr;
    }

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

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

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

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

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

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

    .btn {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }

    .about-stats {
        flex-direction: column;
    }

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

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

@keyframes circuitFlow {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 80px 80px;
    }
}

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

/* Smooth scrolling for anchor links */
html {
    scroll-padding-top: 80px;
}
