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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0A0A0B;
    color: #FFFFFF;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Particle System */
#particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 600vh;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0) 100%);
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 4px 1px rgba(255, 255, 255, 0.4);
    animation: glow 2s infinite;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 4px 1px rgba(255, 255, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 6px 2px rgba(255, 255, 255, 0.6);
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

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

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

.nav-brand {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(135deg, #00A4E4 0%, #9333EA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #00A4E4;
}

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

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #FFFFFF;
    margin: 3px 0;
    transition: 0.3s;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #00A4E4 0%, #9333EA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #00A4E4 0%, #9333EA 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 164, 228, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid #374151;
}

.btn-secondary:hover {
    border-color: #9CA3AF;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 10;
    padding-top: 70px;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: bold;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.typewriter-container {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.typewriter {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: #9CA3AF;
    font-family: 'JetBrains Mono', monospace;
}

.cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-description {
    font-size: 1.25rem;
    color: #9CA3AF;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.6s forwards;
}

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

/* Section Styles */
section {
    padding: 100px 0;
    position: relative;
    z-index: 10;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: bold;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #9CA3AF;
}

.subsection-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.subsection-subtitle {
    font-size: 1.125rem;
    color: #9CA3AF;
    text-align: center;
    margin-bottom: 50px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(147, 51, 234, 0.2);
}

.about-content h3 {
    font-size: 1.875rem;
    font-weight: bold;
    margin-bottom: 30px;
}

.about-content p {
    color: #D1D5DB;
    margin-bottom: 25px;
    line-height: 1.7;
}

.about-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin: 40px 0;
}

.detail-item h4 {
    color: white;
    font-weight: 600;
    margin-bottom: 8px;
}

.detail-item p {
    color: #9CA3AF;
    margin: 0;
}

/* Experience Section */
.experience {
    background: rgba(15, 15, 16, 0.5);
}

.experience-item {
    background: rgba(17, 24, 39, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    transition: border-color 0.3s ease;
}

.experience-item:hover {
    border-color: rgba(147, 51, 234, 0.3);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.experience-info h3,
.experience-info h4 {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
}

.company {
    color: #00A4E4;
    font-weight: 600;
}

.company.purple {
    color: #9333EA;
}

.experience-date {
    color: #9CA3AF;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

.experience-list {
    list-style: none;
    margin-bottom: 30px;
}

.experience-list li {
    color: #D1D5DB;
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
}

.experience-list li:before {
    content: '•';
    color: #00A4E4;
    position: absolute;
    left: 0;
    top: 0;
}

.experience-section {
    margin-top: 60px;
}

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

.project-card {
    background: rgba(17, 24, 39, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: rgba(147, 51, 234, 0.3);
    transform: translateY(-5px);
}

.project-header {
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-icon {
    text-align: center;
}

.project-icon h3 {
    font-size: 2rem;
    color: white;
    font-weight: bold;
}

.project-icon span {
    font-size: 3rem;
}

.gradient-cyan {
    background: linear-gradient(135deg, #00A4E4 0%, #9333EA 100%);
}

.gradient-purple {
    background: linear-gradient(135deg, #9333EA 0%, #EC4899 100%);
}

.gradient-green {
    background: linear-gradient(135deg, #10B981 0%, #3B82F6 100%);
}

.project-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: white;
    margin-bottom: 15px;
}

.project-content p {
    color: #D1D5DB;
    margin-bottom: 20px;
    line-height: 1.6;
    flex: 1;
}

.project-features {
    list-style: none;
    margin-bottom: 25px;
}

.project-features li {
    color: #9CA3AF;
    font-size: 0.9rem;
    margin-bottom: 10px;
    padding-left: 15px;
    position: relative;
}

.project-features li:before {
    content: '•';
    color: #00A4E4;
    position: absolute;
    left: 0;
    top: 0;
}

.project-buttons {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.project-buttons .btn {
    flex: 1;
    font-size: 0.9rem;
    padding: 10px 16px;
    justify-content: center;
}

/* Skills Section */
.skills {
    background: rgba(15, 15, 16, 0.5);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.skill-category {
    background: rgba(17, 24, 39, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
}

.skill-category h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-align: center;
    margin-bottom: 30px;
}

.skill-item {
    margin-bottom: 25px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.skill-info span:first-child {
    color: white;
    font-weight: 600;
}

.skill-percentage {
    color: #00A4E4;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

.skill-bar-container {
    width: 100%;
    height: 8px;
    background: #374151;
    border-radius: 4px;
    overflow: hidden;
}

.skill-bar {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    transition: width 2s ease-out;
}

.skill-bar.gradient-cyan {
    background: linear-gradient(135deg, #00A4E4 0%, #9333EA 100%);
}

.skill-bar.gradient-purple {
    background: linear-gradient(135deg, #9333EA 0%, #EC4899 100%);
}

.skill-bar.gradient-green {
    background: linear-gradient(135deg, #10B981 0%, #3B82F6 100%);
}

/* Achievements */
.achievements {
    margin-top: 60px;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.achievement-card {
    background: rgba(17, 24, 39, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
    transition: border-color 0.3s ease;
}

.achievement-card:hover {
    border-color: rgba(0, 164, 228, 0.3);
}

.achievement-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.achievement-info h4 {
    font-size: 1.25rem;
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
}

.achievement-org {
    color: #00A4E4;
    font-weight: 600;
}

.achievement-org.purple {
    color: #9333EA;
}

.achievement-date {
    color: #9CA3AF;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

.achievement-card p {
    color: #D1D5DB;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: #374151;
    color: #00A4E4;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
}

.tag.purple {
    color: #9333EA;
}

.tag.green {
    color: #10B981;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 1.875rem;
    font-weight: bold;
    color: white;
    margin-bottom: 30px;
}

.contact-info p {
    color: #D1D5DB;
    margin-bottom: 40px;
    line-height: 1.7;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #00A4E4 0%, #9333EA 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.contact-details h4 {
    color: white;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-details p {
    color: #9CA3AF;
    margin: 0;
}

/* Form Styles */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: white;
    font-weight: 600;
    margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: #1F2937;
    border: 1px solid #374151;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00A4E4;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9CA3AF;
}

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

#contact-form .btn-primary {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
}

#contact-form .btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Footer */
.footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    position: relative;
    z-index: 10;
}

.footer p {
    color: #9CA3AF;
}

/* Scroll Animations */
.scroll-animate,
.scroll-animate-left,
.scroll-animate-right {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.scroll-animate {
    transform: translateY(30px);
}

.scroll-animate-left {
    transform: translateX(-50px);
}

.scroll-animate-right {
    transform: translateX(50px);
}

.scroll-animate.animate,
.scroll-animate-left.animate,
.scroll-animate-right.animate {
    opacity: 1;
    transform: translate(0, 0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(10, 10, 11, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 50px;
        transition: left 0.3s ease;
    }

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

    .nav-toggle {
        display: flex;
    }

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

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: -1;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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

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

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

    .experience-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .achievement-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .container {
        padding: 0 15px;
    }

    section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 15px;
    }

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

    .typewriter {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

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

    .section-subtitle {
        font-size: 1rem;
    }

    .about-content h3 {
        font-size: 1.5rem;
    }

    .about-details {
        grid-template-columns: 1fr;
    }

    .experience-item,
    .project-card,
    .skill-category,
    .achievement-card {
        padding: 25px;
    }

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

    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}