/* 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: #e6f1ff;
    background-color: #0a192f;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

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

.nav-logo a:hover {
    color: #8892b0;
}

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

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

.nav-link:hover {
    color: #64ffda;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #64ffda;
    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: #e6f1ff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a192f 0%, #112240 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="%2364ffda" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    text-align: center;
    z-index: 2;
    position: relative;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    margin-bottom: 2rem;
    line-height: 1.1;
}

.name {
    display: block;
    font-size: clamp(2.2rem, 7vw, 4rem);
    font-weight: 600;
    color: #64ffda;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.name-highlight {
    background: linear-gradient(135deg, #64ffda 0%, #8892b0 50%, #64ffda 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
    font-weight: 800;
    position: relative;
    display: inline-block;
}

.name-highlight::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.1), rgba(136, 146, 176, 0.1));
    border-radius: 10px;
    z-index: -1;
    transform: scale(0.95);
}

.role {
    display: block;
    font-size: clamp(1.1rem, 3vw, 1.6rem);
    color: #8892b0;
    font-weight: 500;
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    background: rgba(17, 34, 64, 0.5);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 30px;
    display: inline-block;
    backdrop-filter: blur(10px);
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero-description {
    font-size: 1.2rem;
    color: #8892b0;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.hero-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(100, 255, 218, 0.1);
    border: 2px solid #64ffda;
    border-radius: 50%;
    color: #64ffda;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #64ffda;
    color: #0a192f;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(100, 255, 218, 0.3);
}

.hero-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.download-cv-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #64ffda, #8892b0);
    color: #0a192f;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.2);
}

.download-cv-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(100, 255, 218, 0.4);
    color: #0a192f;
}

.download-cv-btn i {
    font-size: 1.1rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border: 2px solid #64ffda;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

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

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

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(45deg, #64ffda, #8892b0);
    border-radius: 2px;
}

/* About Section */
.about {
    background: #112240;
}

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

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

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

.image-placeholder {
    width: 450px;
    height: 500px;
    background: linear-gradient(135deg, #64ffda, #8892b0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #0a192f;
    box-shadow: 0 20px 40px rgba(100, 255, 218, 0.2);
}

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

.skill-category {
    background: rgba(17, 34, 64, 0.5);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(100, 255, 218, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(100, 255, 218, 0.1);
}

.category-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #64ffda;
    margin-bottom: 1.5rem;
    text-align: center;
}

.skill-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: rgba(100, 255, 218, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.skill-item:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateY(-3px);
}

.skill-item i {
    font-size: 2rem;
    color: #64ffda;
    margin-bottom: 0.5rem;
}

.skill-item span {
    font-size: 0.9rem;
    color: #e6f1ff;
    font-weight: 500;
    text-align: center;
}

/* Experience Section */
.experience {
    background: #0a192f;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #64ffda, #8892b0);
    transform: translateX(-50%);
}

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

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 3rem;
    text-align: left;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 3rem;
    text-align: left;
}

.timeline-marker {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #64ffda;
    border-radius: 50%;
    top: 0;
    border: 4px solid #0a192f;
    z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-marker {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-marker {
    left: -10px;
}

.timeline-content {
    background: rgba(17, 34, 64, 0.5);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(100, 255, 218, 0.2);
}

.job-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #e6f1ff;
    margin-bottom: 0.5rem;
}

.company {
    font-size: 1.1rem;
    color: #64ffda;
    font-weight: 500;
    margin-bottom: 0.3rem;
    display: block;
}

.duration {
    font-size: 0.9rem;
    color: #8892b0;
    margin-bottom: 1rem;
    display: block;
}

.job-description ul {
    list-style: none;
    padding: 0;
}

.job-description li {
    color: #8892b0;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.job-description li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #64ffda;
    font-size: 0.8rem;
}

/* Projects Section */
.projects {
    background: #112240;
}

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

.project-card {
    background: rgba(10, 25, 47, 0.5);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(100, 255, 218, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(100, 255, 218, 0.1), transparent);
    transition: left 0.5s ease;
}

.project-card:hover::before {
    left: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(100, 255, 218, 0.1);
    border-color: #64ffda;
}

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

.project-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #e6f1ff;
}

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

.project-link {
    width: 35px;
    height: 35px;
    background: rgba(100, 255, 218, 0.1);
    border: 1px solid #64ffda;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64ffda;
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: #64ffda;
    color: #0a192f;
    transform: scale(1.1);
}

.project-description {
    color: #8892b0;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.tech-tag {
    background: rgba(100, 255, 218, 0.1);
    color: #64ffda;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid rgba(100, 255, 218, 0.3);
}

/* Education Section */
.education {
    background: #0a192f;
}

.education-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    background: rgba(17, 34, 64, 0.5);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(100, 255, 218, 0.2);
}

.education-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #64ffda, #8892b0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #0a192f;
    flex-shrink: 0;
}

.degree {
    font-size: 1.4rem;
    font-weight: 600;
    color: #e6f1ff;
    margin-bottom: 0.5rem;
}

.institution {
    font-size: 1.1rem;
    color: #64ffda;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.year {
    font-size: 1rem;
    color: #8892b0;
    margin-bottom: 1rem;
}

.description {
    color: #8892b0;
    line-height: 1.6;
}

.certifications {
    margin-top: 3rem;
}

.cert-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #e6f1ff;
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.cert-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(17, 34, 64, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(100, 255, 218, 0.2);
    transition: all 0.3s ease;
}

.cert-item:hover {
    transform: translateY(-3px);
    border-color: #64ffda;
}

.cert-item i {
    font-size: 1.5rem;
    color: #64ffda;
}

.cert-item span {
    color: #e6f1ff;
    font-weight: 500;
}

/* Contact Section */
.contact {
    background: #112240;
}

.contact-content {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.contact-img-placeholder {
    text-align: center;
    padding: 3rem;
    background: rgba(17, 34, 64, 0.5);
    border-radius: 15px;
    border: 1px solid rgba(100, 255, 218, 0.2);
    max-width: 400px;
}

.contact-img-placeholder i {
    font-size: 4rem;
    color: #64ffda;
    margin-bottom: 1rem;
}

.contact-img-placeholder h3 {
    font-size: 1.5rem;
    color: #e6f1ff;
    margin-bottom: 1rem;
}

.contact-img-placeholder p {
    color: #8892b0;
    line-height: 1.6;
}

.contact-form-container {
    background: rgba(10, 25, 47, 0.5);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(100, 255, 218, 0.2);
}

.contact-description {
    font-size: 1.1rem;
    color: #8892b0;
    margin-bottom: 2rem;
    line-height: 1.8;
    text-align: center;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(17, 34, 64, 0.5);
    border: 1px solid rgba(100, 255, 218, 0.3);
    border-radius: 8px;
    color: #e6f1ff;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #8892b0;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #64ffda;
    box-shadow: 0 0 0 2px rgba(100, 255, 218, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: 'Inter', sans-serif;
}

.form-button-wrapper {
    text-align: center;
    margin-top: 1.5rem;
}

.submit-btn {
    background: linear-gradient(45deg, #64ffda, #8892b0);
    color: #0a192f;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 180px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(100, 255, 218, 0.3);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loader {
    display: none;
}

.submit-btn.loading .btn-text {
    display: none;
}

.submit-btn.loading .btn-loader {
    display: inline-block;
}

.form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-status.success {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
    display: block;
}

.form-status.error {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
    display: block;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    background: rgba(100, 255, 218, 0.1);
    border: 1px solid #64ffda;
    border-radius: 50px;
    color: #64ffda;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: #64ffda;
    color: #0a192f;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(100, 255, 218, 0.3);
}

.contact-link i {
    font-size: 1.1rem;
}

.cv-link {
    background: rgba(100, 255, 218, 0.15) !important;
    border: 2px solid #64ffda !important;
    font-weight: 600;
}

.cv-link:hover {
    background: #64ffda !important;
    color: #0a192f !important;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(100, 255, 218, 0.4);
}

/* Footer */
.footer {
    background: #0a192f;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(100, 255, 218, 0.2);
    text-align: center;
    position: relative;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: #8892b0;
    font-size: 1rem;
}

/* Back to top button */
.back-to-top {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64ffda;
    font-size: 1.8rem;
}

.back-to-top:hover {
    transform: translateY(-5px);
}



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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(10, 25, 47, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
    }

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

    .hamburger {
        display: flex;
    }

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

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

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

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 3rem !important;
        padding-right: 0 !important;
        text-align: left !important;
    }

    .timeline-marker {
        left: 10px !important;
        right: auto !important;
    }

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

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

    .contact-form-container {
        order: 2;
    }

    .contact-image {
        order: 1;
    }

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

    .contact-links {
        flex-direction: column;
        align-items: center;
    }

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

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

    .hero-social {
        gap: 1rem;
    }

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

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

    .project-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .education-item {
        flex-direction: column;
        text-align: center;
    }

    .name {
        font-size: clamp(1.8rem, 8vw, 3rem);
        line-height: 1.3;
    }

    .role {
        font-size: clamp(1rem, 4vw, 1.3rem);
        padding: 0.6rem 1.2rem;
        margin-top: 0.8rem;
    }
}
