
/* Root variables */
:root {
    /* Colors - Light Theme */
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-secondary: #7c3aed;
    --color-text: #1e293b;
    --color-text-light: #64748b;
    --color-bg: #ffffff;
    --color-bg-secondary: #f8fafc;
    --color-border: #e2e8f0;
    --color-success: #10b981;
    --color-error: #ef4444;
    --color-warning: #f59e0b;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-mono: 'Fira Code', monospace;
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Border radius */
    --radius-sm: 0.125rem;
    --radius: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition: all 0.2s ease-in-out;
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --color-primary: #3b82f6;
    --color-primary-dark: #2563eb;
    --color-secondary: #8b5cf6;
    --color-text: #f8fafc;
    --color-text-light: #94a3b8;
    --color-bg: #0f172a;
    --color-bg-secondary: #1e293b;
    --color-border: #334155;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    line-height: 1.5;
    color: var(--color-text);
    background-color: var(--color-bg);
    transition: var(--transition);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

h1 {
    font-size: var(--text-4xl);
}

h2 {
    font-size: var(--text-3xl);
}

h3 {
    font-size: var(--text-2xl);
}

p {
    margin-bottom: var(--space-md);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section {
    padding: var(--space-2xl) 0;
}

.section__title {
    text-align: center;
    margin-bottom: var(--space-xl);
    position: relative;
}

.section__title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--color-primary);
    margin: var(--space-sm) auto;
    border-radius: var(--radius-full);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

.btn--primary:hover {
    background-color: var(--color-primary-dark);
    color: var(--color-bg-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.btn--secondary:hover {
    background-color: rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--small {
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--text-sm);
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.1); 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px); 
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); 
    transition: var(--transition);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) 0;
}

.nav__logo {
    font-weight: 700;
    font-size: var(--text-xl);
    color: var(--color-text);
}

.nav__list {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
}

.nav__link {
    color: var(--color-text-light);
    font-weight: 500;
    padding: var(--space-sm) 0;
    position: relative;
}

.nav__link:hover {
    color: var(--color-primary);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.nav__link:hover::after {
    width: 100%;
}

.nav__link.active {
    color: var(--color-primary);
}

.nav__link.active::after {
    width: 100%;
}

.nav__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    transition: var(--transition);
}

.hamburger::before {
    top: -6px;
}

.hamburger::after {
    bottom: -6px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
}

#hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 5% auto;
    padding: 0 1rem;
}

.hero__content {
    flex: 1;
    max-width: 600px;
}
.hero__title {
    font-size: var(--text-5xl);
    margin-bottom: var(--space-md);
}

.hero__name {
    color: var(--color-primary);
}

.hero__subtitle {
    font-size: var(--text-2xl);
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
}

.hero__text {
    font-size: var(--text-lg);
    margin-bottom: var(--space-xl);
}

.hero__buttons {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.hero__social {
    display: flex;
    gap: var(--space-md);
}

.social-icon {
    width: 24px;
    height: 24px;
    transition: var(--transition);
}

.social-icon:hover {
    transform: translateY(-3px);
}
.hero__image {
    display: block;
    flex: 1;
    text-align: right;
    position: relative; 
    z-index: 1; 
}

/* Blob Background */
.blob {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; 
    height: 120%;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    border-radius: 50% 30% 70% 40% / 50% 40% 60% 50%; 
    filter: blur(20px);
    opacity: 0.3;
    z-index: -1; 
    animation: float 8s ease-in-out infinite; 
}

.hero__img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    margin-top: 10%;
    left: 20%;
    position: relative; 
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1)); 
}

/* About Section */
.about__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.about__image {
    margin-bottom: var(--space-lg);
    text-align: center; 
}

.about__img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%; 
    max-width: 500px; 
    height: auto; 
    margin: 0 auto; 
    object-fit: cover; 
}
.detail__label {
    font-weight: 600;
    color: var(--color-primary);
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md); 
    margin-top: var(--space-md);
}

.tech-badge {
    display: flex;
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    background-color: var(--color-bg-secondary);
    color: var(--color-text);
    padding: var(--space-sm);
    border-radius: var(--radius-md); 
    font-size: var(--text-sm);
    font-weight: 500;
    transition: var(--transition);
    width: 80px; 
    height: 80px; 
    text-align: center; 
}

.tech-badge:hover {
    background-color: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

.tech-icon {
    width: 32px; 
    height: 32px;
    margin-bottom: var(--space-xs); 
}

/* Creative Section*/

.creative__content {
    display: flex;
    flex-direction: row; 
    align-items: center; 
    gap: var(--space-xl);
}

.creator__image {
    flex: 1; 
    text-align: center;
    margin-bottom: 0; 
}

.creator__img {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: contain; 
}

.creative__context {
    flex: 1; 
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);

}

/* Projects Section */
.projects__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.project-card {
    background-color: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

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

.project-card__image {
    height: 200px;
    overflow: hidden;
}

.project-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-card__img {
    transform: scale(1.05);
}

.project-card__content {
    padding: var(--space-md);
}

.project-card__title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
}

.project-card__description {
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
    font-size: var(--text-sm);
}

.project-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.project-tag {
    background-color: var(--color-primary);
    color: white;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 500;
}

.project-card__buttons {
    display: flex;
    gap: var(--space-sm);
}

/* Skills Section */
.skills__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.skills__category {
    margin-bottom: var(--space-lg);
}

.skills__category-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-lg);
    color: var(--color-primary);
}

.skill {
    margin-bottom: var(--space-md);
}

.skill__name {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 500;
}

.skill__level {
    display: flex;
    gap: var(--space-xs);
}

.skill__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--color-bg-secondary);
}

.skill__dot.filled {
    background-color: var(--color-primary);
}

/* Contact Section */
.contact__content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

.contact__form {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 500;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: var(--space-sm);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background-color: var(--color-bg);
    color: var(--color-text);
    transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-error {
    display: block;
    margin-top: var(--space-xs);
    color: var(--color-error);
    font-size: var(--text-sm);
}

.contact__info {
    text-align: center;
}

.contact__info-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-md);
    color: var(--color-primary);
}

.contact__details {
    list-style: none;
    margin: var(--space-lg) 0;
}

.contact__detail {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.contact__icon {
    width: 20px;
    height: 20px;
}

.contact__social {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

/* Footer */
.footer {
    background-color: var(--color-bg-secondary);
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--color-border);
}

.footer__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.footer__copyright {
    color: var(--color-text-light);
    font-size: var(--text-sm);
}

.footer__links {
    display: flex;
    gap: var(--space-md);
}

.footer__link {
    color: var(--color-text-light);
    font-size: var(--text-sm);
}

.footer__link:hover {
    color: var(--color-primary);
}

.footer__social {
    display: flex;
    gap: var(--space-md);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    width: 40px;
    height: 40px;
    background-color: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--color-primary-dark);
    color: var(--color-bg-secondary);
    transform: translateY(-3px);
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-success);
    color: white;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1001;
}

.toast.visible {
    opacity: 1;
    visibility: visible;
}

.toast.error {
    background-color: var(--color-error);
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: var(--space-sm) var(--space-md);
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Theme toggle */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    color: var(--color-text);
    transition: var(--transition);
}

.theme-toggle:hover {
    color: var(--color-primary);
    transform: rotate(180deg); 
}

/* Responsive Design */
@media (min-width: 768px) {
    .hero {
        padding-top: 0;
    }
    
    .hero__content {
        max-width: 50%;
    }
    
    .hero__image {
        display: block;
        max-width: 45%;
    }
    
    .hero__title {
        font-size: var(--text-5xl);
    }

    .blob {
        left: 55%;
    }
    
    .about__content {
        flex-direction: row;
        align-items: center;
    }
    
    .about__image {
        flex: 1;
        margin-bottom: 0;
    }
    
    .about__text {
        flex: 1;
    }
    
    .contact__content {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
    
    .contact__info {
        text-align: left;
    }
    
    .contact__detail {
        justify-content: flex-start;
    }
    
    .footer__content {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (max-width: 767px) {
    .nav__list {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--color-bg);
        flex-direction: column;
        align-items: center;
        padding: var(--space-lg) 0;
        box-shadow: var(--shadow-md);
        transform: translateY(-150%);
        opacity: 0;
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav__list.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav__toggle {
        display: block;
    }
    
    .nav__toggle.active .hamburger {
        background-color: transparent;
    }
    
    .nav__toggle.active .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }
    
    .nav__toggle.active .hamburger::after {
        transform: rotate(-45deg);
        bottom: 0;
    }
    
    .hero__buttons {
        flex-direction: column;
    }
    
    .timeline::before {
        left: 5px;
    }
    
    .timeline__item::before {
        left: -4px;
    }
}

@media (max-width: 992px) {
    #hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero__image {
        order: -1; 
        margin-bottom: 2rem;
        text-align: center;
    }

    .hero__img {
        left: 0;
    }

    .blob {
        left: 55%;
    }
    
    .hero__buttons {
        justify-content: center;
    }
    
    .hero__social {
        justify-content: center;
    }

    .creative__content {
        flex-direction: column; 
    }
    
    .creator__image {
        margin-bottom: var(--space-lg); 
    }
}