/* ========================
   CSS VARIABLES & RESET
======================== */
:root {
    --primary-color: #00abf0;
    --secondary-color: #bf0fbc;
    --accent-color: #fa8072;
    --dark-bg: #031540;
    --light-bg: #ffffff;
    --text-dark: #031540;
    --text-light: #ffffff;
    --card-bg: #1a1a1a;
    --success: #4caf50;
    --warning: #ffc107;
    --info: #2196f3;
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* ========================
   HEADER & NAVIGATION
======================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 5%;
    background: var(--secondary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.header.scrolled {
    padding: 0.75rem 5%;
    background: rgba(191, 15, 188, 0.95);
    backdrop-filter: blur(10px);
}

.logo {
    font-family: "French Script MT", cursive;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.75rem;
    cursor: pointer;
    z-index: 1001;
}

.navbar {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navbar a {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: var(--transition);
    position: relative;
}

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

.navbar a:hover::after,
.navbar a.active::after {
    width: 80%;
}

.navbar a:hover,
.navbar a.active {
    color: var(--primary-color);
}

/* ========================
   REUSABLE COMPONENTS
======================== */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 4px;
    background: var(--accent-color);
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    font-weight: 300;
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}

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

.btn-primary:hover {
    background: #0096c7;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

.btn-project {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
}

.btn-project:hover {
    background: #0096c7;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========================
   HOME SECTION
======================== */
.home {
    min-height: 100vh;
    background: var(--dark-bg);
    display: flex;
    align-items: center;
    padding: 100px 5% 50px;
}

.home-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.home-image {
    position: relative;
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1;
    margin: 0 auto;
}

.home-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 20px solid var(--accent-color);
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.image-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 171, 240, 0.2), rgba(191, 15, 188, 0.2));
    pointer-events: none;
}

.home-content {
    color: var(--text-light);
}

.home-content h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.home-content .highlight {
    color: var(--primary-color);
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.typing-text {
    font-size: 2rem;
    color: transparent;
    -webkit-text-stroke: 0.7px var(--text-light);
    background-image: linear-gradient(var(--primary-color), var(--primary-color));
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-position: -100% 0;
    animation: textAnimate 6s linear infinite;
    margin-bottom: 1.5rem;
}

@keyframes textAnimate {
    0%, 10%, 100% {
        background-position: -100% 0;
    }
    65%, 85% {
        background-position: 0 0;
    }
}

.home-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.home-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.home-sci {
    display: flex;
    gap: 1rem;
}

.home-sci a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    color: var(--dark-bg);
    background: var(--text-light);
    border-radius: 50%;
    border: 2px solid transparent;
    transition: var(--transition);
}

.home-sci a:hover {
    background: transparent;
    color: var(--text-light);
    border-color: var(--text-light);
    transform: translateY(-5px);
}

/* ========================
   ABOUT SECTION
======================== */
.about {
    padding: 80px 5%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

.about-values h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.value-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.value-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.value-item i {
    font-size: 2rem;
    color: var(--primary-color);
    min-width: 40px;
}

.value-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.value-item p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* ========================
   SKILLS SECTION
======================== */
.my-skill-set {
    padding: 80px 5%;
    background: var(--light-bg);
}

.skills-category {
    margin-bottom: 4rem;
}

.category-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill {
    background: var(--light-bg);
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.skill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.skill:hover::before {
    transform: scaleX(1);
}

.skill:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.skill i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.skill img {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    object-fit: contain;
}

.skill .emoji-icon {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 1rem;
}

.skill h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.skill-level {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin: 1rem 0;
}

.skill-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    animation: skillLoad 1.5s ease forwards;
}

@keyframes skillLoad {
    from {
        width: 0;
    }
}

.skill-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.philosophy-quote {
    background: linear-gradient(135deg, var(--dark-bg), var(--secondary-color));
    color: var(--text-light);
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 4rem;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.quote-icon {
    font-size: 3rem;
    opacity: 0.3;
    margin-bottom: 1rem;
}

.quote-text {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.quote-author {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
}

/* ========================
   PROJECTS SECTION
======================== */
.projects {
    padding: 80px 5%;
    background: var(--dark-bg);
    color: var(--text-light);
}

.projects .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

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

.project {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 32px rgba(0, 171, 240, 0.3);
    border-color: var(--primary-color);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.project h3 {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.status-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.finished {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid #4caf50;
}

.status-badge.paused {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid #ffc107;
}

.status-badge.planning {
    background: rgba(33, 150, 243, 0.2);
    color: #2196f3;
    border: 1px solid #2196f3;
}

.status-badge.maintained {
    background: rgba(156, 39, 176, 0.2);
    color: #9c27b0;
    border: 1px solid #9c27b0;
}

.project-description {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: rgba(0, 171, 240, 0.1);
    border: 1px solid rgba(0, 171, 240, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary-color);
}

.tech-tag i {
    font-size: 1rem;
}

.tech-tag img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.project-footer {
    margin-top: auto;
}

/* ========================
   CONTACT SECTION
======================== */
.contact {
    padding: 80px 5%;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--secondary-color) 100%);
    color: var(--text-light);
}

.contact .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

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

.contact-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    font-size: 2.5rem;
    color: var(--text-light);
}

.contact-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.contact-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.contact-link {
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
    display: inline-block;
}

.contact-link:hover {
    color: var(--text-light);
    transform: translateX(5px);
}

.contact-cta {
    max-width: 800px;
    margin: 3rem auto 0;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

/* ========================
   FOOTER
======================== */
.footer {
    background: var(--secondary-color);
    color: var(--text-light);
    padding: 2rem 5%;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer p {
    font-size: 0.95rem;
}

.footer-links a {
    color: var(--text-light);
    font-weight: 500;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* ========================
   RESPONSIVE DESIGN
======================== */

/* Tablets and below (1024px) */
@media (max-width: 1024px) {
    .section-title {
        font-size: 2rem;
    }
    
    .home-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .home-content h1 {
        font-size: 2.5rem;
    }
    
    .typing-text {
        font-size: 1.8rem;
    }
    
    .home-buttons {
        justify-content: center;
    }
    
    .home-sci {
        justify-content: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
}

/* Mobile devices (768px) */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .navbar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(191, 15, 188, 0.98);
        flex-direction: column;
        justify-content: center;
        gap: 1.5rem;
        padding: 2rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    }
    
    .navbar.active {
        right: 0;
    }
    
    .navbar a {
        font-size: 1.2rem;
        width: 100%;
        text-align: center;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .home {
        padding: 80px 5% 30px;
    }
    
    .home-content h1 {
        font-size: 2rem;
    }
    
    .typing-text {
        font-size: 1.5rem;
    }
    
    .home-content p {
        font-size: 1rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Small mobile devices (480px) */
@media (max-width: 480px) {
    .header {
        padding: 1rem 3%;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .home-content h1 {
        font-size: 1.75rem;
    }
    
    .typing-text {
        font-size: 1.25rem;
    }
    
    .home-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
    
    .skill {
        padding: 1.5rem;
    }
    
    .quote-text {
        font-size: 1.2rem;
    }
}

/* Extra small devices (360px) */
@media (max-width: 360px) {
    .section-container {
        padding: 0 3%;
    }
    
    .home-content h1 {
        font-size: 1.5rem;
    }
    
    .typing-text {
        font-size: 1.1rem;
    }
}
