/* Root Variables */
:root {
    --primary-color: #DF8908;
    --secondary-color: #B415ff;
    --accent-color: #FF00FF;
    --cyan-color: #00FFFF;
    --bg-dark: #0a0a0a;
    --bg-card: #1a1a1a;
    --text-light: #ffffff;
    --text-gray: #a0a0a0;
    --gradient-1: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-2: linear-gradient(135deg, var(--accent-color), var(--cyan-color));
}

[data-theme="light"] {
    --bg-dark: #ffffff;
    --bg-card: #f5f5f5;
    --text-light: #0a0a0a;
    --text-gray: #666666;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.brand-name {
    font-size: 1.2rem;
    font-weight: 700;
}

.brand-subtitle {
    font-size: 0.7rem;
    color: var(--text-gray);
    letter-spacing: 1px;
}

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

.nav-link {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s;
}

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

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.theme-toggle {
    background: var(--bg-card);
    border: none;
    color: var(--text-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.theme-toggle:hover {
    background: var(--gradient-1);
    transform: rotate(180deg);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
    background: radial-gradient(ellipse at top, rgba(223, 137, 8, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at bottom, rgba(180, 21, 255, 0.1) 0%, transparent 50%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(223, 137, 8, 0.03) 2px, rgba(223, 137, 8, 0.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(180, 21, 255, 0.03) 2px, rgba(180, 21, 255, 0.03) 4px);
    animation: gridMove 20s linear infinite;
    pointer-events: none;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(223, 137, 8, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    animation: pulse 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.hero-background::before,
.hero-background::after {
    content: '';
    position: absolute;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
}

.hero-background::before {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 5%;
    animation: float 15s ease-in-out infinite;
}

.hero-background::after {
    width: 200px;
    height: 200px;
    bottom: 10%;
    right: 10%;
    border-color: var(--secondary-color);
    animation: float 12s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -20px) rotate(90deg); }
    50% { transform: translate(-20px, -40px) rotate(180deg); }
    75% { transform: translate(-40px, -20px) rotate(270deg); }
}

.hero-code {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: var(--primary-color);
    animation: codeFloat 20s infinite;
}

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

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

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

.highlight {
    color: var(--primary-color);
}

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

.hero-description {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

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

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

.btn-primary {
    background: var(--gradient-1);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(223, 137, 8, 0.3);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

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

.profile-img {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(223, 137, 8, 0.3);
    animation: float 6s ease-in-out infinite;
}

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

/* Section Styles */
section {
    padding: 6rem 0;
}

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

.section-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 800px;
    margin: 0 auto;
}

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

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.about-journey h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-journey p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.about-features {
    display: grid;
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    background: var(--bg-dark);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.feature-label {
    font-size: 0.75rem;
    color: var(--primary-color);
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.feature-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

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

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-gray);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.project-card {
    padding: 2.5rem;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(223, 137, 8, 0.2);
}

.project-number {
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.project-tag {
    font-size: 0.75rem;
    color: var(--primary-color);
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.project-card p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.project-card ul {
    list-style: none;
}

.project-card li {
    color: var(--text-gray);
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    position: relative;
}

.project-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Services Section */
.services {
    background: var(--bg-card);
}

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

.service-card {
    padding: 2.5rem;
    background: var(--bg-dark);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
}

.service-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.service-tag {
    font-size: 0.75rem;
    color: var(--secondary-color);
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

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

.service-card p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.service-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.service-link:hover {
    gap: 1rem;
}

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

.skill-category h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.skill-category > p {
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.skill-bars {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-bar {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    font-weight: 600;
}

.skill-progress {
    width: 100%;
    height: 8px;
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 10px;
    transition: width 1s ease;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.skill-tag {
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Experience Section */
.experience {
    background: var(--bg-card);
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-1);
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid var(--bg-card);
}

.timeline-content {
    padding: 2rem;
    background: var(--bg-dark);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.timeline-header h3 {
    font-size: 1.3rem;
}

.timeline-date {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
}

.timeline-company {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.timeline-location {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.timeline-description {
    margin-bottom: 1.5rem;
}

.timeline-description li {
    color: var(--text-gray);
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    position: relative;
}

.timeline-description li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

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

.timeline-tags span {
    padding: 0.3rem 0.8rem;
    background: rgba(223, 137, 8, 0.1);
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--primary-color);
}

/* Education Section */
.education-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.education-label {
    font-size: 0.8rem;
    color: var(--primary-color);
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.education-card {
    padding: 2.5rem;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.education-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.education-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.education-institution {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.education-card p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.education-courses {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.education-courses span {
    padding: 0.4rem 1rem;
    background: rgba(223, 137, 8, 0.1);
    border-radius: 15px;
    font-size: 0.85rem;
    color: var(--primary-color);
}

.certificate-card {
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.certificate-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.certificate-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.certificate-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.languages {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.language-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 8px;
}

/* Work Gallery Section */
.work-gallery {
    background: var(--bg-card);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.work-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.work-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s;
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.work-item:hover .work-overlay {
    opacity: 1;
}

.work-item:hover img {
    transform: scale(1.1);
}

.work-link {
    padding: 1rem 2rem;
    background: var(--gradient-1);
    color: white;
    border-radius: 8px;
    font-weight: 600;
}

.show-more {
    display: block;
    margin: 0 auto;
}

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

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-gray);
}

.contact-item i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: 50%;
    color: var(--primary-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-light);
    font-family: inherit;
    font-size: 1rem;
}

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

/* Footer */
.footer {
    background: var(--bg-card);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-about p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.newsletter {
    display: flex;
    gap: 1rem;
}

.newsletter input {
    flex: 1;
    padding: 0.8rem;
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-light);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: var(--text-gray);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    border-radius: 50%;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--gradient-1);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 2rem;
        transition: left 0.3s;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

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

    .mobile-menu-toggle {
        display: block;
    }

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

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

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

    .about-content,
    .contact-content,
    .education-content {
        grid-template-columns: 1fr;
    }

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

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .footer-content {
        grid-template-columns: 1fr;
    }
}

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

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

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

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

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

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

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}
