/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #0a0a0a;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(55, 65, 81, 0.3);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.logo {
    font-size: 1.25rem;
    font-weight: bold;
    color: #ffffff;
}

.nav-desktop {
    display: none;
    gap: 2rem;
}

.nav-link {
    color: #d1d5db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #ffffff;
}

.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger {
    width: 24px;
    height: 2px;
    background: #d1d5db;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .hamburger:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-mobile {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(55, 65, 81, 0.3);
}

.nav-mobile.active {
    display: flex;
}

.nav-link-mobile {
    color: #d1d5db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    text-align: left;
}

.nav-link-mobile:hover {
    color: #ffffff;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Ccircle cx='7' cy='7' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 10;
}

.hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(135deg, #60a5fa, #a78bfa, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #9ca3af;
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-description {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 3rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.25);
}

.btn-secondary {
    border: 1px solid #4b5563;
    color: #d1d5db;
    background: transparent;
}

.btn-secondary:hover {
    background: #374151;
    border-color: #6b7280;
}

.scroll-arrow {
    color: #9ca3af;
    transition: color 0.3s ease;
    animation: bounce 2s infinite;
}

.scroll-arrow:hover {
    color: #ffffff;
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translateY(0);
    }
    40%, 43% {
        transform: translateY(-10px);
    }
    70% {
        transform: translateY(-5px);
    }
    90% {
        transform: translateY(-2px);
    }
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.section-description {
    font-size: 1.25rem;
    color: #9ca3af;
    max-width: 42rem;
    margin: 0 auto;
}

.subsection-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: #0a0a0a;
}

.about-grid {
    display: grid;
    gap: 3rem;
    margin-bottom: 4rem;
}

.journey-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.journey-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.journey-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.journey-icon.blue {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.journey-icon.purple {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
}

.journey-item h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.journey-item p {
    color: #9ca3af;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-item {
    background: rgba(17, 24, 39, 0.5);
    border-radius: 0.5rem;
    padding: 1rem;
}

.skill-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.skill-name {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffffff;
    font-weight: 500;
}

.skill-name svg {
    color: #60a5fa;
}

.skill-percentage {
    color: #9ca3af;
    font-size: 0.875rem;
}

.skill-bar {
    width: 100%;
    background: #374151;
    border-radius: 9999px;
    height: 0.5rem;
}

.skill-progress {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    height: 0.5rem;
    border-radius: 9999px;
    transition: width 1s ease-out;
}

.technologies {
    text-align: center;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.tech-tag {
    background: rgba(31, 41, 55, 0.5);
    color: #d1d5db;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.2s ease;
}

.tech-tag:hover {
    background: rgba(55, 65, 81, 0.5);
}

/* Experience Section */
.experience {
    padding: 5rem 0;
    background: #111827;
}

.timeline {
    position: relative;
    max-width: 64rem;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 2rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #3b82f6, #8b5cf6);
}

.timeline-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 3rem;
}

.timeline-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.25);
    flex-shrink: 0;
    color: white;
}

.timeline-content {
    flex: 1;
    background: rgba(31, 41, 55, 0.5);
    border-radius: 0.5rem;
    padding: 1.5rem;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(55, 65, 81, 0.5);
}

.timeline-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.timeline-content h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.company {
    color: #60a5fa;
    font-weight: 600;
}

.timeline-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.timeline-period,
.timeline-location {
    color: #9ca3af;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.timeline-description {
    color: #d1d5db;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.achievements h4 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.achievements ul {
    list-style: none;
    padding: 0;
}

.achievements li {
    color: #9ca3af;
    font-size: 0.875rem;
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.25rem;
}

.achievements li::before {
    content: "•";
    color: #60a5fa;
    margin-right: 0.5rem;
}

/* Projects Section */
.projects {
    padding: 5rem 0;
    background: #0a0a0a;
}

.projects-grid {
    display: grid;
    gap: 2rem;
}

.project-card {
    background: rgba(17, 24, 39, 0.5);
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid rgba(31, 41, 55, 0.5);
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.9));
}

.project-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.project-icon.blue {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.project-icon.purple {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.project-icon.green {
    background: linear-gradient(135deg, #10b981, #059669);
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.project-content > p {
    color: #9ca3af;
    margin-bottom: 1rem;
    line-height: 1.7;
    font-size: 0.875rem;
}

.project-features,
.project-tech {
    margin-bottom: 1rem;
}

.project-features h4,
.project-tech h4 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.feature-tags span {
    background: #374151;
    color: #d1d5db;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
}

.tech-tags-project {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.tech-tags-project span {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
}

.tech-tags-project.blue span {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.tech-tags-project.purple span {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.tech-tags-project.green span {
    background: linear-gradient(135deg, #10b981, #059669);
}

.project-buttons {
    display: flex;
    gap: 0.75rem;
}

.btn-project {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.btn-project.blue {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.15);
}

.btn-project.purple {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.15);
}

.btn-project.green {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.15);
}

.btn-project:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.25);
}

.btn-github {
    border: 1px solid #4b5563;
    color: #d1d5db;
    background: transparent;
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-github:hover {
    background: #374151;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: #111827;
}

.contact-grid {
    display: grid;
    gap: 3rem;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    color: white;
}

.contact-label {
    color: #9ca3af;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.contact-value {
    color: #ffffff;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-value:hover {
    color: #60a5fa;
}

.contact-cta {
    background: rgba(31, 41, 55, 0.5);
    border-radius: 0.5rem;
    padding: 1.5rem;
    border: 1px solid rgba(55, 65, 81, 0.5);
}

.contact-cta h4 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.contact-cta p {
    color: #9ca3af;
    font-size: 0.875rem;
    line-height: 1.7;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: #d1d5db;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: #374151;
    border: 1px solid #4b5563;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: #ffffff;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px #3b82f6;
}

.btn-submit {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.15);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.25);
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Footer */
.footer {
    background: #0a0a0a;
    border-top: 1px solid rgba(31, 41, 55, 0.3);
    padding: 2rem 0;
}

.footer-content {
    text-align: center;
}

.footer-content p {
    color: #9ca3af;
}

/* Responsive Design */
@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
    
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .timeline-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .timeline-meta {
        align-items: flex-end;
    }
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
    
    .hero-title {
        font-size: 5rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1536px;
    }
}