﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --background: #0f172a;
    --foreground: #f8fafc;
    --primary: #06b6d4;
    --primary-hover: #22d3ee;
    --secondary: #1e293b;
    --accent: #f97316;
    --muted: #64748b;
    --border: #334155;
    --card: #1e293b;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--foreground);
    background-color: var(--background);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
    letter-spacing: -0.025em;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.025em;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

    a:hover {
        color: var(--primary);
    }

/* Layout */
.min-h-screen {
    min-height: 100vh;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
    background-color: rgba(15, 23, 42, 0.8);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s;
}

    header.scrolled {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

.header-container {
    display: flex;
    height: 5rem;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
    display: flex;
    align-items: center;
}

    .logo span {
        display: inline-block;
        margin-left: 0.5rem;
    }

nav {
    display: none;
}

    nav a {
        font-size: 0.9rem;
        font-weight: 500;
        padding: 0.5rem 1rem;
        border-radius: 0.5rem;
        transition: all 0.3s;
    }

        nav a:hover {
            background-color: var(--secondary);
            color: var(--primary);
        }

.nav-gap {
    gap: 0.5rem;
}

.mobile-menu-button {
    display: block;
    background: none;
    border: none;
    color: var(--foreground);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.button-primary {
    background-color: var(--primary);
    color: var(--background);
}

    .button-primary:hover {
        background-color: var(--primary-hover);
        transform: translateY(-2px);
    }

.button-outline {
    background-color: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

    .button-outline:hover {
        background-color: var(--primary);
        color: var(--background);
        transform: translateY(-2px);
    }

/* Sections */
section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: -0.5rem;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 4px;
        background: var(--primary);
        border-radius: 2px;
    }

.section-description {
    color: var(--muted);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at 20% 30%, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
        z-index: -1;
    }

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
}

.hero-subtitle {
    color: var(--primary);
    font-weight: 500;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

    .hero-title span {
        color: var(--primary);
    }

.hero-description {
    font-size: 1.25rem;
    color: var(--muted);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.social-link {
    color: var(--foreground);
    font-size: 1.25rem;
    transition: all 0.3s;
}

    .social-link:hover {
        color: var(--primary);
        transform: translateY(-3px);
    }

/* About Section */
.about-grid {
    display: grid;
    gap: 3rem;
}

.about-image {
    width: 100%;
    max-width: 400px;
    border-radius: 1rem;
    overflow: hidden;
    margin: 0 auto;
    position: relative;
}

    .about-image img {
        width: 100%;
        height: auto;
        display: block;
        transition: transform 0.5s;
    }

    .about-image:hover img {
        transform: scale(1.05);
    }

    .about-image::before {
        content: '';
        position: absolute;
        top: -10px;
        left: -10px;
        right: 10px;
        bottom: 10px;
        border: 2px solid var(--primary);
        border-radius: 1rem;
        z-index: -1;
    }

.about-content h3 {
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

    .about-content h3::after {
        content: '';
        position: absolute;
        bottom: -0.5rem;
        left: 0;
        width: 50px;
        height: 3px;
        background: var(--primary);
        border-radius: 2px;
    }

.info-list {
    list-style: none;
    margin-bottom: 2rem;
}

    .info-list li {
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
    }

    .info-list i {
        color: var(--primary);
        margin-right: 1rem;
        font-size: 1.25rem;
        width: 20px;
        text-align: center;
    }

/* Skills Section */
.skills-container {
    display: grid;
    gap: 2rem;
}

.skill-category {
    background-color: var(--card);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

    .skill-category:hover {
        transform: translateY(-5px);
    }

    .skill-category h3 {
        margin-bottom: 1.5rem;
        color: var(--primary);
        display: flex;
        align-items: center;
    }

        .skill-category h3 i {
            margin-right: 1rem;
        }

.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.skill-item {
    background-color: var(--secondary);
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s;
}

    .skill-item:hover {
        background-color: var(--primary);
        color: var(--background);
        transform: translateY(-3px);
    }

/* Experience Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

    .timeline::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 2px;
        height: 100%;
        background-color: var(--border);
    }

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
}

    .timeline-item:last-child {
        margin-bottom: 0;
    }

.timeline-content {
    position: relative;
    width: calc(50% - 2rem);
    padding: 2rem;
    background-color: var(--card);
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: auto;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 1.5rem;
    width: 1rem;
    height: 1rem;
    background-color: var(--primary);
    border-radius: 50%;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    left: -2.5rem;
}

.timeline-item:nth-child(even) .timeline-content::before {
    right: -2.5rem;
}

.timeline-date {
    display: inline-block;
    padding: 0.25rem 1rem;
    background-color: var(--primary);
    color: var(--background);
    border-radius: 2rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.timeline-title {
    margin-bottom: 0.5rem;
}

.timeline-subtitle {
    color: var(--muted);
    margin-bottom: 1rem;
}

/* Certifications Section */
.cert-grid {
    display: grid;
    gap: 2rem;
}

.cert-card {
    background-color: var(--card);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

    .cert-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 5px;
        height: 100%;
        background-color: var(--primary);
        transition: width 0.3s;
    }

    .cert-card:hover {
        transform: translateY(-5px);
    }

        .cert-card:hover::before {
            width: 10px;
        }

.cert-title {
    margin-bottom: 0.5rem;
}

.cert-issuer {
    color: var(--muted);
    margin-bottom: 1rem;
}

.cert-date {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--secondary);
    border-radius: 2rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.cert-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 500;
    margin-top: 1rem;
}

    .cert-link i {
        margin-left: 0.5rem;
        font-size: 0.875rem;
    }

/* Contact Section */
.contact-grid {
    display: grid;
    gap: 3rem;
}

.contact-info {
    background-color: var(--card);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-list {
    list-style: none;
    margin-top: 2rem;
}

    .contact-list li {
        margin-bottom: 1.5rem;
        display: flex;
        align-items: center;
    }

    .contact-list i {
        color: var(--primary);
        margin-right: 1rem;
        font-size: 1.25rem;
        width: 20px;
        text-align: center;
    }

.contact-form {
    background-color: var(--card);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    background-color: var(--secondary);
    color: var(--foreground);
    font-family: inherit;
    transition: all 0.3s;
}

    .form-input:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2);
    }

textarea.form-input {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--secondary);
    padding: 3rem 0;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

    .footer-social a {
        color: var(--foreground);
        font-size: 1.25rem;
        transition: all 0.3s;
    }

        .footer-social a:hover {
            color: var(--primary);
            transform: translateY(-3px);
        }

.copyright {
    color: var(--muted);
    font-size: 0.875rem;
}

/* Media queries */
@media (min-width: 768px) {
    h1 {
        font-size: 4rem;
    }

    h2 {
        font-size: 3rem;
    }

    nav {
        display: flex;
    }

    .mobile-menu-button {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr 2fr;
        align-items: center;
    }

    .skills-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr 2fr;
    }
}

@media (min-width: 1024px) {
    .skills-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .cert-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .timeline::before {
        left: 1rem;
    }

    .timeline-content {
        width: calc(100% - 3rem);
        margin-left: 3rem !important;
    }

    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -2.5rem;
    }
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

*::-webkit-scrollbar-thumb {
    background: #06B6D4;
    border-radius: 4px;
}
