:root {
    /* Professional Color Palette - Deep Blues & Warm Accents */
    --primary-dark: #0a192f;
    --primary-medium: #112240;
    --primary-light: #233554;
    --accent-teal: #64ffda;
    --accent-coral: #ff6b6b;
    --text-light: #ccd6f6;
    --text-slate: #8892b0;
    --text-white: #e6f1ff;
    --bg-gradient: linear-gradient(180deg, #0a192f 0%, #112240 100%);
}

@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--primary-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
}

/* Typography */
h1,
h2,
h3 {
    color: var(--text-white);
    font-weight: 700;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.3rem;
}

p {
    color: var(--text-slate);
    font-size: 1.1rem;
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Great Vibes', cursive;
    font-size: 1.8rem;
    color: var(--accent-teal);
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.logo:hover {
    color: var(--text-white);
    text-shadow: 0 0 20px rgba(100, 255, 218, 0.5);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-teal);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-teal);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(ellipse at top right, rgba(100, 255, 218, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-text {
    z-index: 1;
}

.subtitle {
    color: var(--accent-teal);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.hero h1 {
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text-white) 0%, var(--text-slate) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h2 {
    color: var(--text-slate);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.hero p {
    max-width: 500px;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn.primary {
    background: transparent;
    border: 2px solid var(--accent-teal);
    color: var(--accent-teal);
}

.btn.primary:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateY(-3px);
}

.btn.secondary {
    background: transparent;
    border: 2px solid var(--text-slate);
    color: var(--text-light);
}

.btn.secondary:hover {
    border-color: var(--accent-teal);
    color: var(--accent-teal);
}

.hero-image {
    display: flex;
    justify-content: center;
    position: relative;
}

.img-wrapper {
    width: 350px;
    height: 420px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.img-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid var(--accent-teal);
    border-radius: 8px;
    transform: translate(15px, 15px);
    z-index: -1;
    transition: transform 0.3s;
}

.img-wrapper:hover::before {
    transform: translate(10px, 10px);
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    filter: grayscale(20%) contrast(1.1);
    transition: filter 0.3s;
}

.img-wrapper:hover img {
    filter: none;
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.section-header h2 {
    white-space: nowrap;
}

.section-header::after {
    content: '';
    height: 1px;
    width: 100%;
    max-width: 300px;
    background: var(--primary-light);
}

.section-number {
    color: var(--accent-teal);
    font-size: 1.2rem;
    font-family: monospace;
}

/* About */
.about-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
}

.about-text p {
    margin-bottom: 1rem;
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 1.5rem;
}

.skills-list li {
    color: var(--text-slate);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skills-list li::before {
    content: '▹';
    color: var(--accent-teal);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.skill-category {
    background: var(--primary-medium);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--primary-light);
    transition: all 0.3s;
}

.skill-category:hover {
    transform: translateY(-5px);
    border-color: var(--accent-teal);
}

.skill-category h3 {
    color: var(--text-white);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-category i {
    color: var(--accent-teal);
}

.skill-category ul li {
    color: var(--text-slate);
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-category ul li::before {
    content: '▹';
    color: var(--accent-teal);
    font-size: 0.8rem;
}

/* Medy Wear Section */
.medy-showcase {
    background: linear-gradient(135deg, var(--primary-medium) 0%, var(--primary-dark) 100%);
    padding: 80px 0;
    margin: 50px 0;
    position: relative;
    overflow: hidden;
}

.medy-showcase::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.medy-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.medy-text h3 {
    font-size: 2.5rem;
    color: #d4af37;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.medy-text h4 {
    color: var(--text-slate);
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.medy-text p {
    margin-bottom: 2rem;
    color: var(--text-slate);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-light);
    font-size: 0.9rem;
    transition: all 0.3s;
}

.social-link:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: #d4af37;
    color: #d4af37;
    transform: translateY(-3px);
}

.social-link i {
    font-size: 1.2rem;
}

.medy-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.medy-img {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}

.medy-img.wide {
    grid-column: span 2;
    aspect-ratio: 2/1;
}

.medy-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s, filter 0.3s;
}

.medy-img:hover img {
    transform: scale(1.05);
}

/* Projects */
.projects-grid {
    display: grid;
    gap: 2rem;
}

.project-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    padding: 2rem;
    background: var(--primary-medium);
    border-radius: 8px;
    border: 1px solid var(--primary-light);
    transition: all 0.3s;
}

.project-card:hover {
    border-color: var(--accent-teal);
    transform: translateY(-5px);
}

.project-card:nth-child(even) {
    direction: rtl;
}

.project-card:nth-child(even)>* {
    direction: ltr;
}

.project-image {
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content h3 {
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.project-tech {
    color: var(--accent-teal);
    font-size: 0.85rem;
    font-family: monospace;
    margin-bottom: 1rem;
}

.project-content p {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.btn-link {
    color: var(--accent-teal);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-link:hover {
    text-decoration: underline;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--primary-light);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -35px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-dark);
    border: 2px solid var(--accent-teal);
}

.timeline-item .date {
    color: var(--accent-teal);
    font-size: 0.9rem;
    font-family: monospace;
    margin-bottom: 0.5rem;
}

.timeline-item h3 {
    margin-bottom: 0.3rem;
}

.timeline-item p {
    font-size: 1rem;
}

/* Contact */
.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content h2 {
    margin-bottom: 1rem;
}

.contact-content p {
    margin-bottom: 2rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--primary-medium);
    border: 1px solid var(--primary-light);
    border-radius: 6px;
    color: var(--text-light);
    transition: all 0.3s;
}

.contact-btn:hover {
    border-color: var(--accent-teal);
    color: var(--accent-teal);
    transform: translateY(-3px);
}

/* Footer */
footer {
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid var(--primary-light);
}

footer p {
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .container {
        padding: 0 30px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        order: 2;
    }

    .hero-image {
        order: 1;
    }

    .cta-buttons {
        justify-content: center;
    }

    .medy-content {
        grid-template-columns: 1fr;
    }

    .project-card {
        grid-template-columns: 1fr;
    }

    .project-card:nth-child(even) {
        direction: ltr;
    }

    .about-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--primary-dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: left 0.3s;
    }

    .nav-links.active {
        left: 0;
    }

    .img-wrapper {
        width: 280px;
        height: 340px;
    }

    .social-links {
        flex-wrap: wrap;
    }

    .medy-gallery {
        grid-template-columns: 1fr;
    }

    .medy-img.wide {
        grid-column: span 1;
        aspect-ratio: 1;
    }
}