
:root {
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    

    --color-bg-dark: #111827; 
    --color-bg-med: #1f2937;
    --color-bg-light: #374151;
    --color-bg-card: rgba(31, 41, 55, 0.5); 
    --color-border: rgba(75, 85, 99, 0.5);
    --color-border-hover: rgba(96, 165, 250, 0.5);
    
    --color-text-primary: #ffffff;
    --color-text-secondary: #d1d5db;
    --color-text-muted: #9ca3af;
    
    --color-brand-primary: #60a5fa;
    --color-brand-secondary: #8b5cf6;
    --color-brand-gradient: linear-gradient(135deg, var(--color-brand-primary), var(--color-brand-secondary));
    
    --color-heart: #ef4444;
    
   
    --max-width: 1200px;
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    
  
    --transition-fast: all 0.2s ease;
    --transition-med: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);


    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --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-brand: 0 10px 25px rgba(59, 130, 246, 0.3);
}


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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--color-text-primary);
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
}

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

a {
    color: var(--color-brand-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}
a:hover {
    color: var(--color-brand-secondary);
}


.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.icon {
    width: 1.5rem;
    height: 1.5rem;
    color: currentColor;
}

.gradient-text {
    background: var(--color-brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradient-flow 5s linear infinite;
}



@keyframes gradient-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-bounce);
    font-size: 1rem;
}

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

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-brand);
}

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

.btn-secondary:hover {
    background: var(--color-bg-light);
    border-color: var(--color-bg-light);
}

.btn-full {
    width: 100%;
}


[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-animate="fade-down"] {
    transform: translateY(-20px);
}

[data-animate="fade-in"] {
    transform: translateY(0);
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}


.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
    padding: 1rem 0;
}

.header.scrolled {
    background: rgba(17, 24, 39, 0.85); 
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.nav-brand .icon {
    color: var(--color-brand-primary);
    transition: var(--transition-bounce);
}
.nav-brand:hover .icon {
    transform: rotate(360deg) scale(1.1);
}

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

.nav-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.2s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-brand-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}
.nav-link:hover {
    color: white;
}
.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1100;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    transition: var(--transition-med);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-mobile {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg-dark);
    z-index: 1050;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;


    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
    transition: var(--transition-med);
}

.nav-mobile.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-mobile .nav-link {
    font-size: 1.5rem;
    padding: 0.75rem 1rem;
    color: var(--color-text-secondary);
}
.nav-mobile .nav-link:hover {
    color: white;
    background: var(--color-bg-light);
    border-radius: var(--radius-md);
}


.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 1rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 4xl;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 4vw, 1.875rem);
    color: var(--color-text-secondary);
    font-weight: 300;
    margin-bottom: 2rem;
    min-height: 2.25rem; 
}

.hero-subtitle span {
    opacity: 0;
    animation: fadeInChar 0.1s forwards;
}

@keyframes fadeInChar {
    to {
        opacity: 1;
    }
}


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

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.social-links a {
    color: var(--color-text-muted);
    transition: var(--transition-med);
}

.social-links a:hover {
    color: var(--color-brand-primary);
    transform: scale(1.2) translateY(-3px);
}

.social-links .icon {
    width: 2rem;
    height: 2rem;
}

.scroll-down {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: var(--transition-med);
    animation: pulse 2s infinite;
}

.scroll-down:hover {
    color: var(--color-brand-primary);
    animation-play-state: paused;
}

@keyframes pulse {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(10px);
        opacity: 0.5;
    }
}


.section {
    padding: 6rem 1rem;
}

.section-alt {
    background: rgba(17, 24, 39, 0.5);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--color-brand-gradient);
    border-radius: var(--radius-sm);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 42rem;
    margin: 0 auto;
}


.interactive-card {
    background: var(--color-bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: var(--transition-med);
    position: relative;
    overflow: hidden;
}

.interactive-card::before {
    content: '';
    position: absolute;
    top: var(--mouse-y, 50%);
    left: var(--mouse-x, 50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.15) 0%, transparent 80%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.interactive-card:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}
.interactive-card:hover::before {
    opacity: 1;
}


.about-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

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

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-card {
    padding: 1.5rem;
    text-align: center;
}

.stat-card .icon {
    color: var(--color-brand-primary);
    margin-bottom: 0.75rem;
    width: 2rem;
    height: 2rem;
}

.stat-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.stat-card p {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.info-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    padding: 2rem;
}

.info-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.info-list {
    list-style: none;
}

.info-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(75, 85, 99, 0.3);
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list li span:first-child {
    color: var(--color-text-muted);
}

.info-list li span:last-child {
    color: white;
    font-weight: 500;
}
.info-list li a {
    font-weight: 500;
}


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

.project-card {
    overflow: hidden;
}

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

.project-image img {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    transition: var(--transition-med);
}

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

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17, 24, 39, 0.8), transparent);
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.project-content p {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

.tag {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.tag:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.project-tags .tag {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

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

.project-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}


.skills-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 4rem;
}

.skill-category {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.skill-category h3 {
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1.5rem;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-grow: 1;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-info span:first-child {
    color: var(--color-text-secondary);
    font-weight: 500;
}

.skill-info span:last-child {
    color: var(--color-brand-primary);
    font-size: 0.875rem;
}

.skill-bar {
    width: 100%;
    height: 0.5rem;
    background: var(--color-bg-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--color-brand-gradient);
    border-radius: var(--radius-sm);
  
    width: 0; 
    opacity: 0;
    transition: width 1s ease-out, opacity 0.5s ease-out;
}
.skill-progress.is-visible {
    opacity: 1;
 
}

.learning-section {
    text-align: center;
}

.learning-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.learning-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}




.contact-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    background: rgba(59, 130, 246, 0.2);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    flex-shrink: 0;

}

.contact-icon .icon {
    color: var(--color-brand-primary);
}

.contact-method p {
    margin: 0;
}
.contact-method p:first-child {
    color: white;
    font-weight: 500;
    margin-bottom: 0.25rem;
}
.contact-method p:last-child {
    color: var(--color-text-muted);
}
.contact-method a {
    color: var(--color-text-muted);
}
.contact-method a:hover {
    color: var(--color-brand-primary);
}



.contact-form-container {
    padding: 2rem;
}

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

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

.form-group label {
    color: var(--color-text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
}

.form-group input,
.form-group textarea {
    background: rgba(55, 65, 81, 0.5);
    border: 1px solid var(--color-bg-light);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    color: white;
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-brand-primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

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


.footer {
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--color-border);
    padding: 2rem 1rem;
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.footer-brand .icon {
    color: var(--color-brand-primary);
}

.footer-made {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-muted);
}

.footer-made .heart {
    color: var(--color-heart);
    width: 1rem;
    height: 1rem;
}

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

.footer-tech p {
    color: var(--color-bg-light);
    font-size: 0.875rem;
}


::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-med);
}

::-webkit-scrollbar-thumb {
    background: var(--color-brand-gradient);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--color-brand-secondary), var(--color-brand-primary));
}


@media (min-width: 640px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
    
    .menu-toggle {
        display: none;
    }
    .nav-mobile {
        display: none;
    }
    
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
    max-width: 600px;
    margin: 0 auto; 
}
}

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