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

:root {
    --bg-primary: hsl(220, 26%, 6%);
    --bg-secondary: hsl(220, 24%, 8%);
    --bg-secondary-transparent: hsla(220, 20%, 14%, 0.3);
    --text-primary: hsl(210, 20%, 98%);
    --text-secondary: hsl(215, 16%, 65%);
    --accent: hsl(189, 94%, 55%);
    --accent-hover: hsl(189, 94%, 65%);
    --border: hsl(220, 20%, 18%);
    --card-bg: hsl(220, 24%, 8%);
    --gradient: linear-gradient(135deg, hsl(189, 94%, 55%), hsl(230, 94%, 65%));
    --shadow-glow: 0 0 40px hsla(189, 94%, 55%, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Typography */
.text-gradient {
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
    background-color: transparent;
}

.navbar.scrolled {
    background-color: hsla(220, 26%, 6%, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem;
}

.logo {
    font-size: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    text-decoration: none;
    font-weight: 700;
}

.nav-links {
    display: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

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

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

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

.mobile-menu-btn {
    display: flex;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
}

.close-icon {
    display: none;
}

.mobile-menu-btn.active .menu-icon {
    display: none;
}

.mobile-menu-btn.active .close-icon {
    display: block;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    background-color: hsla(220, 26%, 6%, 0.95);
    backdrop-filter: blur(10px);
}

.mobile-menu.active {
    display: flex;
}

.mobile-nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s;
}

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

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: none;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image: 
        linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.95)),
        url('../src/assets/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding-top: 5rem;
}

.hero-content {
    max-width: 56rem;
    text-align: center;
    animation: fadeIn 0.6s ease-out;
}

.hero-greeting {
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-name {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 42rem;
    margin: 0 auto 2rem;
    line-height: 1.75;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent);
    cursor: pointer;
    transition: color 0.3s;
    animation: bounce 2s infinite;
}

.scroll-indicator:hover {
    color: var(--accent-hover);
}

@media (min-width: 768px) {
    .hero-name {
        font-size: 4.5rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-buttons {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .hero-name {
        font-size: 6rem;
    }
    
    .hero-title {
        font-size: 3.75rem;
    }
    
    .hero-greeting {
        font-size: 1rem;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.75rem;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    border-color: var(--accent);
    color: var(--accent);
    background-color: transparent;
}

.btn-outline:hover {
    background-color: var(--accent);
    color: var(--bg-primary);
}

.btn-full {
    width: 100%;
}

/* Sections */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}

.section-divider {
    width: 5rem;
    height: 4px;
    background-color: var(--accent);
    margin: 0 auto 1.5rem;
}

.section-description {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 42rem;
    margin: 0 auto 4rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 3.5rem;
    }
}

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

.about-grid {
    display: grid;
    gap: 3rem;
    margin-bottom: 4rem;
}

.about-text {
    animation: slideInLeft 0.6s ease-out;
}

.about-paragraph {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.75;
}

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

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.skill-name {
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-primary);
}

.skill-percentage {
    color: var(--accent);
    font-weight: 600;
}

.skill-bar {
    height: 0.5rem;
    background-color: var(--bg-secondary);
    border-radius: 9999px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient);
    transition: width 1s ease-out;
}

.highlights {
    display: grid;
    gap: 1.5rem;
}

.highlight-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 0.75rem;
    transition: var(--transition);
    animation: fadeIn 0.6s ease-out;
}

.highlight-card:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.highlight-icon {
    color: var(--accent);
    margin-bottom: 1rem;
}

.highlight-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.highlight-description {
    color: var(--text-secondary);
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
        align-items: start;
    }
    
    .highlights {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

.services-grid {
    display: grid;
    gap: 1.5rem;
}

.service-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 0.75rem;
    transition: var(--transition);
    cursor: pointer;
    animation: fadeIn 0.6s ease-out;
}

.service-card:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-8px);
}

.service-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.5rem;
    background-color: hsla(189, 94%, 55%, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.service-icon svg {
    color: var(--accent);
}

.service-card:hover .service-icon {
    background-color: hsla(189, 94%, 55%, 0.2);
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.service-description {
    color: var(--text-secondary);
    line-height: 1.75;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Projects Section */
.projects {
    background-color: var(--bg-primary);
}

.projects-grid {
    display: grid;
    gap: 2rem;
}

.project-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: var(--transition);
    animation: fadeIn 0.6s ease-out;
}

.project-card:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-8px);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 14rem;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background-color: hsla(189, 94%, 55%, 0.2);
    opacity: 0;
    transition: opacity 0.3s;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.75;
}

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

.tech-tag {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    background-color: hsla(189, 94%, 55%, 0.1);
    color: var(--accent);
    border-radius: 9999px;
    border: 1px solid hsla(189, 94%, 55%, 0.2);
}

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

.btn-project {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-outline-project {
    border-color: var(--accent);
    color: var(--accent);
    background-color: transparent;
}

.btn-outline-project:hover {
    background-color: var(--accent);
    color: var(--bg-primary);
}

.btn-primary-project {
    background-color: var(--accent);
    color: var(--bg-primary);
}

.btn-primary-project:hover {
    background-color: var(--accent-hover);
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Contact Section */
.contact {
    background-color: var(--bg-secondary-transparent);
}

.contact-grid {
    display: grid;
    gap: 2rem;
}

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

.contact-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: var(--transition);
    animation: fadeIn 0.6s ease-out;
}

.contact-card:hover {
    box-shadow: var(--shadow-glow);
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    background-color: hsla(189, 94%, 55%, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    color: var(--accent);
}

.contact-card-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-card-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-card-link:hover {
    color: var(--accent);
}

.contact-card-text {
    color: var(--text-secondary);
}

.contact-form-wrapper {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 0.75rem;
    animation: fadeIn 0.6s ease-out;
    animation-delay: 0.3s;
}

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

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

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
    padding: 0.75rem;
    background-color: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

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

.form-textarea {
    resize: none;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 2fr;
    }
}

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

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-info {
    text-align: center;
}

.footer-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-title {
    color: var(--text-secondary);
}

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

.social-link {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
    text-decoration: none;
}

.social-link:hover {
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .footer-info {
        text-align: left;
    }
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transform: translateY(150%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    max-width: 20rem;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-title {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.toast-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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