/* CSS Reset & Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: #ccd6f6;
    background-color: #0a0a0a;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.1;
    color: #e6f1ff;
}

p {
    color: #8892b0;
    font-size: 1rem;
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #64ffda;
    transition: color 0.3s ease;
}

.nav-logo a:hover {
    color: #e6f1ff;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: #ccd6f6;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #64ffda;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #64ffda;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Navigation */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.bar {
    width: 25px;
    height: 2px;
    background-color: #64ffda;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 20px;
    position: relative;
}

.hero-container {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.hero-profile {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.hero-profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #64ffda;
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.hero-profile-image:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.4);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero-greeting {
    color: #64ffda;
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 1rem;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
}

.hero-name {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    color: #e6f1ff;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.hero-title {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 600;
    color: #8892b0;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.hero-description {
    max-width: 600px;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 3rem;
    color: #8892b0;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: 2px solid #64ffda;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
}

.btn-primary {
    background-color: transparent;
    color: #64ffda;
}

.btn-primary:hover {
    background-color: rgba(100, 255, 218, 0.1);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #e6f1ff;
    border-color: #e6f1ff;
}

.btn-secondary:hover {
    background-color: rgba(230, 241, 255, 0.1);
    transform: translateY(-2px);
}

/* Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #64ffda;
    font-size: 0.8rem;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background-color: #64ffda;
    position: relative;
    animation: scrollDown 2s infinite;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -3px;
    width: 8px;
    height: 8px;
    border-right: 2px solid #64ffda;
    border-bottom: 2px solid #64ffda;
    transform: rotate(45deg);
}

@keyframes scrollDown {
    0%, 20% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(20px);
        opacity: 0;
    }
}

/* Section Styles */
section {
    padding: 6rem 0;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: #e6f1ff;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: #64ffda;
}

/* About Section */
.about {
    background-color: #0a0a0a;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.image-wrapper {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #64ffda, #1e3a8a);
    padding: 4px;
    transition: all 0.3s ease;
}

.image-wrapper:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(100, 255, 218, 0.3);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.1), rgba(30, 58, 138, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.image-wrapper:hover .image-overlay {
    opacity: 1;
}

.image-border {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid #64ffda;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-wrapper:hover .image-border {
    opacity: 1;
}

/* Experience Section */
.experience {
    background-color: #0a0a0a;
}

.experience-timeline {
    position: relative;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #233554;
}

.experience-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 4rem;
}

.experience-item::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #64ffda;
    border: 3px solid #0a0a0a;
}

.experience-date {
    color: #64ffda;
    font-size: 0.9rem;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    margin-bottom: 0.5rem;
}

.experience-title {
    font-size: 1.3rem;
    color: #e6f1ff;
    margin-bottom: 1rem;
}

.experience-description {
    color: #8892b0;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.experience-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background-color: rgba(100, 255, 218, 0.1);
    color: #64ffda;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
}

/* Projects Section */
.projects {
    background-color: #0a0a0a;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.project-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 2rem 0;
}

.project-item:nth-child(even) {
    direction: rtl;
}

.project-item:nth-child(even) .project-content {
    direction: ltr;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.project-title {
    font-size: 1.5rem;
    color: #e6f1ff;
    margin-bottom: 0.5rem;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    color: #8892b0;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #64ffda;
}

.project-description {
    color: #8892b0;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-image .image-placeholder {
    width: 100%;
    height: 250px;
    border-radius: 10px;
    background: linear-gradient(135deg, #64ffda, #1e3a8a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64ffda;
    font-size: 3rem;
    transition: transform 0.3s ease;
}

.project-image .image-placeholder:hover {
    transform: scale(1.05);
}

/* Contact Section */
.contact {
    background-color: #0a0a0a;
    text-align: center;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-description {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: #8892b0;
}

/* Footer */
.footer {
    background-color: #0a0a0a;
    border-top: 1px solid #233554;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-link {
    color: #8892b0;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #64ffda;
}

.footer-text {
    color: #8892b0;
    font-size: 0.9rem;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: #0a0a0a;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .hero {
        padding: 0 20px;
        text-align: center;
    }

    .hero-profile-image {
        width: 100px;
        height: 100px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        order: -1;
    }

    .image-wrapper {
        width: 250px;
        height: 250px;
    }

    .experience-timeline::before {
        left: 10px;
    }

    .experience-item {
        padding-left: 2.5rem;
    }

    .experience-item::before {
        left: 2px;
    }

    .project-item {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-item:nth-child(even) {
        direction: ltr;
    }

    .project-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .project-links {
        align-self: flex-start;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 0 15px;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    .experience-item {
        padding-left: 2rem;
    }

    .project-title {
        font-size: 1.3rem;
    }

    .image-wrapper {
        width: 200px;
        height: 200px;
    }

    .hero-profile-image {
        width: 80px;
        height: 80px;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #64ffda;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4fd1c7;
}

/* Selection Styling */
::selection {
    background-color: rgba(100, 255, 218, 0.2);
    color: #e6f1ff;
}

/* Focus Styling */
*:focus {
    outline: 2px solid #64ffda;
    outline-offset: 2px;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #233554;
    border-top: 2px solid #64ffda;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 1rem 2rem;
    border-radius: 4px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 300px;
    word-wrap: break-word;
}

.notification-success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.notification-error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}