/* CSS Variables */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #10b981;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --card-bg: #ffffff;
    --border-color: #e5e7eb;
    --hero-grad1: #f3f4f6;
    --hero-grad2: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --section-padding: 80px 0;
    --container-width: 1200px;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 50%;
}

[data-theme="dark"] {
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-light: #9ca3af;
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --bg-tertiary: #374151;
    --card-bg: #1f2937;
    --border-color: #374151;
    --hero-grad1: #1f2937;
    --hero-grad2: #111827;
}

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--font-secondary); font-size: 16px; line-height: 1.6; color: var(--text-primary); background-color: var(--bg-primary); overflow-x: hidden; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-primary); font-weight: 600; line-height: 1.2; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; }
input, textarea { font-family: inherit; border: none; outline: none; }

/* Container */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
.section-subtitle { display: inline-block; font-size: 14px; font-weight: 500; color: var(--primary-color); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px; }
.section-title { font-size: 36px; font-weight: 700; margin-bottom: 20px; }
.section-line { width: 60px; height: 4px; background: linear-gradient(90deg, var(--primary-color), var(--secondary-color)); border-radius: 2px; margin-bottom: 40px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 28px; font-size: 15px; font-weight: 500; border-radius: var(--radius-md); transition: all var(--transition-normal); }
.btn-primary { background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); color: white; }
.btn-primary:hover { transform: translateY(-2px); }
.btn-secondary { background: transparent; color: var(--text-primary); border: 2px solid var(--border-color); }
.btn-secondary:hover { border-color: var(--primary-color); color: var(--primary-color); }

/* Loader */
.loader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg-primary); display: flex; align-items: center; justify-content: center; z-index: 9999; }
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-circle { width: 50px; height: 50px; border: 4px solid var(--border-color); border-top-color: var(--primary-color); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Header */
.header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; background: transparent; }
.header.scrolled { background: var(--bg-primary); box-shadow: var(--shadow-md); }
.navbar { padding: 20px 0; }
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; font-size: 24px; font-weight: 700; }
.logo-text { color: var(--text-primary); }
.logo-dot { color: var(--primary-color); font-size: 28px; }
.nav-menu { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: 30px; }
.nav-link { font-size: 15px; font-weight: 500; color: var(--text-secondary); position: relative; padding: 5px 0; }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--primary-color); transition: width var(--transition-normal); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link:hover, .nav-link.active { color: var(--primary-color); }
.nav-actions { display: flex; align-items: center; gap: 15px; }
.theme-toggle { width: 40px; height: 40px; border-radius: var(--radius-full); background: var(--bg-tertiary); color: var(--text-primary); display: flex; align-items: center; justify-content: center; }
.theme-toggle:hover { background: var(--primary-color); color: white; }
.hamburger { display: none; width: 30px; height: 20px; position: relative; background: transparent; }
.hamburger span { display: block; position: absolute; width: 100%; height: 2px; background: var(--text-primary); border-radius: 2px; }
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 9px; }
.hamburger span:nth-child(4) { top: 18px; }

/* Hero Section - Desktop: Text LEFT, Image RIGHT */
.hero {
    min-height: 100vh;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
    background: var(--bg-primary);
    /* container will centre the block, hero itself does not need flex */
    /* subtle animated gradient behind everything using theme vars */
    background: linear-gradient(45deg, var(--hero-grad1), var(--hero-grad2));
    background-size: 400% 400%;
    animation: gradientBackground 15s ease infinite;
}
.hero-bg { position: absolute; top: 0; right: 0; width: 100%; height: 100%; z-index: 0; }
.hero-bg-shape {
    position: absolute; top: -20%; right: -10%; width: 600px; height: 600px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(16, 185, 129, 0.1));
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}
.hero-bg-shape-2 {
    position: absolute; bottom: -30%; left: -10%; width: 500px; height: 500px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(16, 185, 129, 0.08));
    border-radius: 50%;
    animation: float 25s ease-in-out infinite reverse;
}

/* moving gradient keyframes */
@keyframes gradientBackground {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0%,100% { transform: translate(0,0) scale(1); }
    50% { transform: translate(30px,20px) scale(1.05); }
}

/* Hero Container sits in the normal flow and centres the hero-content */
.hero .container {
    /* no flex here; let .hero-content handle row/column layout */
    position: relative;
    z-index: 1;
}

/* Hero Content – the flex container for the text + image row */
.hero-content {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* keep items at start of row */
    gap: 240px;         /* significantly larger gap to push image toward Projects link */
    flex: 1;
    max-width: 700px; /* allow text to stretch wider for better balance */
    text-align: left;
}

.hero-text {
    max-width: 600px;          /* cap width so lines don't get too long */
    line-height: 1.5;          /* more breathing between lines */
    letter-spacing: 0.5px;     /* subtle spacing for readability */
}

.hero-greeting,
.hero-title,
.hero-description {
    margin-bottom: 20px;       /* more vertical rhythm */
}

.hero-cta .btn {
    min-width: 180px;          /* stretch buttons a bit */
}
.hero-image-container {
    margin-left: 120px; /* larger offset to nudge image further right */
}

.hero-greeting { display: inline-block; font-size: 18px; color: var(--primary-color); margin-bottom: 10px; font-weight: 500; letter-spacing: 1px; animation: fadeInUp 0.8s ease forwards; }
.hero-name { font-size: 64px; font-weight: 800; line-height: 1.1; margin-bottom: 15px; display: flex; flex-direction: column; animation: fadeInUp 0.8s ease 0.2s forwards; opacity: 0; }
.name-part { display: block; color: var(--text-primary); }
.name-part:last-child { font-size: 48px; opacity: 0.8; }
.hero-title { font-size: 22px; font-weight: 500; color: var(--text-secondary); margin-bottom: 20px; position: relative; }
.hero-title::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 40px; height: 2px; background: var(--primary-color); }
.hero-description { font-size: 16px; color: var(--text-secondary); margin-bottom: 30px; line-height: 1.8; }
.hero-cta { display: flex; gap: 15px; margin-bottom: 35px; }
.hero-social { display: flex; gap: 15px; }
.social-link { width: 45px; height: 45px; border-radius: var(--radius-full); background: var(--bg-tertiary); color: var(--text-secondary); display: flex; align-items: center; justify-content: center; font-size: 18px; transition: all var(--transition-normal); }
.social-link:hover { background: var(--primary-color); color: white; transform: translateY(-3px); }

/* Hero Image - RIGHT side (image on right) */
.hero-image-container { 
    flex: 0 0 auto; 
    /* No order - stays on right by default */
}

.hero-image-wrapper { 
    position: relative; 
    width: 380px; 
    height: 380px; 
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; 
    overflow: hidden; 
    box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.25), 0 0 0 8px var(--bg-primary), 0 0 0 10px var(--primary-color); 
    animation: morphShape 8s ease-in-out infinite;
}
.hero-image-wrapper img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-image-bg { position: absolute; top: 20px; right: -20px; width: 100%; height: 100%; background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; z-index: -1; opacity: 0.3; }
.profile-image { width: 100%; height: 100%; object-fit: cover; }

.scroll-down { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); width: 40px; height: 40px; border-radius: var(--radius-full); background: var(--bg-tertiary); color: var(--text-secondary); display: flex; align-items: center; justify-content: center; }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }
@keyframes morphShape { 0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; } 50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; } }

/* About Section */
.about { padding: var(--section-padding); background: var(--bg-secondary); }
.section-header { text-align: center; margin-bottom: 50px; }
.about-content { display: grid; grid-template-columns: 350px 1fr; gap: 60px; align-items: center; }
.about-image { display: flex; justify-content: center; }
.image-card { width: 300px; height: 350px; background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); border-radius: var(--radius-xl); padding: 20px; }
.image-card-inner { width: 100%; height: 100%; background: var(--bg-primary); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; font-size: 80px; color: var(--primary-color); }
.about-text h3 { font-size: 24px; margin-bottom: 20px; color: var(--primary-color); }
.about-text p { color: var(--text-secondary); margin-bottom: 20px; line-height: 1.8; }
.about-highlights { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin: 30px 0; }
.highlight-item { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--bg-primary); border-radius: var(--radius-md); }
.highlight-item i { width: 35px; height: 35px; border-radius: var(--radius-full); background: var(--primary-color); color: white; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.highlight-item span { font-weight: 500; color: var(--text-primary); }

/* Projects Section */
.projects { padding: var(--section-padding); background: var(--bg-primary); }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 30px; }
.project-card { background: var(--card-bg); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); transition: transform 0.4s var(--transition-slow), box-shadow 0.4s var(--transition-slow); will-change: transform;
}
.project-card:hover {
    transform: translateY(-15px) rotateY(5deg) scale(1.02);
    box-shadow: var(--shadow-lg);
}
.project-image { position: relative; height: 220px; background: var(--bg-tertiary); }
.project-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 60px; color: var(--text-light); }
.project-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(37, 99, 235, 0.9); display: flex; align-items: center; justify-content: center; gap: 15px; opacity: 0; transition: opacity var(--transition-normal); }
.project-card:hover .project-overlay { opacity: 1; }
.project-link { width: 50px; height: 50px; border-radius: var(--radius-full); background: white; color: var(--primary-color); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.project-content { padding: 25px; }
.project-title { font-size: 20px; margin-bottom: 10px; }
.project-description { color: var(--text-secondary); font-size: 14px; margin-bottom: 15px; }
.project-tech { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-tag { padding: 5px 12px; background: var(--bg-tertiary); color: var(--primary-color); font-size: 12px; font-weight: 500; border-radius: var(--radius-sm); }

/* project filter controls */
.project-filter { margin-bottom: 20px; text-align: right; }
.project-filter label { font-weight: 500; margin-right: 8px; }
.project-filter select { padding: 6px 10px; border-radius: var(--radius-md); border: 1px solid var(--border-color); }

/* status badges */
.tech-tag.status-live { background: var(--primary-color); color: #fff; }
.tech-tag.status-development { background: #f59e0b; color: #111; }
.tech-tag.status-paused { background: #6b7280; color: #fff; }

/* Skills Section */
.skills { padding: var(--section-padding); background: var(--bg-secondary); }
.skills-content { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 50px; }
.skills-category { background: var(--card-bg); padding: 30px; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.category-header { display: flex; align-items: center; gap: 12px; margin-bottom: 25px; }
.category-header i { width: 45px; height: 45px; border-radius: var(--radius-full); background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); color: white; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.category-header h3 { font-size: 20px; }
.skills-list { display: flex; flex-direction: column; gap: 20px; }
.skill-item { display: flex; flex-direction: column; gap: 8px; }
.skill-info { display: flex; align-items: center; gap: 10px; }
.skill-info i { font-size: 20px; color: var(--primary-color); }
.skill-info span { font-weight: 500; color: var(--text-primary); }
.skill-bar { width: 100%; height: 8px; background: var(--bg-tertiary); border-radius: 4px; }
.skill-progress { height: 100%; background: linear-gradient(90deg, var(--primary-color), var(--secondary-color)); border-radius: 4px; }
.skills-icons { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }
.skill-icon-item { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px; background: var(--card-bg); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.skill-icon-item:hover { transform: translateY(-5px); }
.skill-icon-item i { font-size: 40px; color: var(--primary-color); }
.skill-icon-item span { font-size: 14px; font-weight: 500; color: var(--text-secondary); }

/* Contact Section */
.contact { padding: var(--section-padding); background: var(--bg-primary); }

/* CV Section (about page) */
.cv-section .btn-secondary { background: var(--bg-secondary); color: var(--text-primary); }
.cv-section .btn-secondary:hover { background: var(--primary-color); color: white; }

/* CV expand/minimize controls */
.cv-embed { position: relative; }

/* ===========================
   Admin page styles
   =========================== */
.admin-dashboard section { margin-bottom: 40px; }

/* quick‑login modal used on every page */
.admin-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.admin-modal {
    width: min(450px, 90%);
    max-width: 480px;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 20px 45px rgba(30, 41, 59, 0.35);
    padding: 26px;
    border-radius: var(--radius-xl);
    position: relative;
    text-align: center;
    font-family: var(--font-secondary);
}
.admin-modal h2 {
    font-size: 24px;
    margin-bottom: 16px;
    font-weight: 700;
    color: var(--text-primary);
}
.admin-modal p {
    margin: 0;
}
.admin-modal input {
    margin-bottom: 14px;
}
.admin-modal .btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #ffffff;
    border: none;
    padding: 12px;
    border-radius: var(--radius-lg);
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: transform 0.15s ease, filter 0.2s ease;
}
.admin-modal .btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}
.admin-modal .btn-google {
    width: 100%;
    background: #ffffff;
    color: #202124;
    border: 1px solid #dcdce0;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
}
.admin-modal .btn-google:hover {
    background: #f7f8fb;
}
.admin-modal .btn-google:before {
    content: '';
    width: 18px;
    height: 18px;
    border-radius: 2px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath fill='%234285F4' d='M17.64 9.2045c0-.6125-.055-1.2045-.158-1.7775H9v3.366h4.844c-.208 1.12-.84 2.07-1.794 2.712v2.256h2.904c1.7-1.566 2.68-3.866 2.68-6.556z'/%3E%3Cpath fill='%2334A853' d='M9 18c2.43 0 4.466-.8 5.955-2.166l-2.904-2.256c-.81.544-1.85.868-3.051.868-2.346 0-4.335-1.584-5.042-3.72H.993v2.34C2.461 15.934 5.518 18 9 18z'/%3E%3Cpath fill='%23FBBC05' d='M3.958 10.7265c-.18-.544-.282-1.1265-.282-1.7265s.102-1.182.282-1.7265V4.9335H.9945C.3615 6.31 0 7.89 0 9.5s.3615 3.19.9945 4.566h2.9635z'/%3E%3Cpath fill='%23EA4335' d='M9 3.58c1.326 0 2.52.443 3.458 1.3125l2.59-2.59C13.46.844 11.427 0 9 0 5.518 0 2.461 2.0665.9945 4.9335l2.9635 2.34C4.665 5.163 6.654 3.58 9 3.58z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 10px;
}
.admin-modal .modal-divider {
    text-align: center;
    margin: 16px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    position: relative;
}
.admin-modal .modal-divider::before,
.admin-modal .modal-divider::after {
    content: '';
    height: 1px;
    width: 40%;
    background: var(--border-color);
    position: absolute;
    top: 50%;
}
.admin-modal .modal-divider::before { left: 0; }
.admin-modal .modal-divider::after { right: 0; }
.admin-modal .modal-error {
    margin-top: 10px;
    display: none;
    color: red;
}

.admin-card {
    background: var(--card-bg);
    padding: 30px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: min(520px, 90%);
    max-width: 90%;
    text-align: center;
    margin: 0 auto;
}

.admin-dashboard {
    max-width: 820px;
    margin: 0 auto;
}

.admin-modal h2 { margin-bottom: 20px; font-size: 22px; color: var(--text-primary); }
.admin-modal input[type=password] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}
.admin-modal .btn {
    width: 100%;
}
.admin-modal .modal-error { color: red; display: none; margin-top: 10px; }
.admin-modal .modal-close {
    position: absolute;
    top: 10px; right: 10px;
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-secondary);
}
.admin-modal .modal-close:hover { color: var(--text-primary); }
.admin-dashboard h3 { margin-bottom: 20px; color: var(--primary-color); }
.admin-dashboard input,
.admin-dashboard textarea { width: 100%; padding: 10px; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-md); margin-bottom: 15px; }

.admin-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    width: 100%;
}

/* center content within admin.html */
body.admin-page { display: flex; align-items: center; justify-content: center; height: 100vh; background: var(--bg-secondary); }

.cv-controls { position: absolute; top: 10px; right: 10px; opacity: 0; transition: opacity 0.2s; }
.cv-embed:hover .cv-controls { opacity: 1; }
.cv-toggle { background: rgba(0,0,0,0.5); color: white; border: none; border-radius: var(--radius-full); width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.cv-toggle:hover { background: rgba(0,0,0,0.7); }

/* collapsed state hide iframe */
.cv-section:not(.expanded) .cv-embed iframe { height: 0; visibility: hidden; }
.cv-section.expanded .cv-embed iframe { height: 600px; visibility: visible; }


.contact-content { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
.contact-info h3 { font-size: 28px; margin-bottom: 15px; }
.contact-info > p { color: var(--text-secondary); margin-bottom: 30px; line-height: 1.8; }
.contact-details { display: flex; flex-direction: column; gap: 20px; margin-bottom: 30px; }
.contact-item { display: flex; align-items: center; gap: 15px; }
.contact-item i { width: 50px; height: 50px; border-radius: var(--radius-full); background: var(--bg-secondary); color: var(--primary-color); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.contact-item:hover i { background: var(--primary-color); color: white; }
.contact-item .contact-label { display: block; font-size: 12px; color: var(--text-light); margin-bottom: 3px; }
.contact-item a, .contact-item span { font-weight: 500; color: var(--text-primary); }
.contact-social { display: flex; gap: 15px; }
.contact-form { background: var(--card-bg); padding: 40px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 500; color: var(--text-primary); margin-bottom: 8px; }
.form-group input, .form-group textarea { width: 100%; padding: 14px 18px; background: var(--bg-secondary); color: var(--text-primary); border-radius: var(--radius-md); }
.form-group textarea { resize: vertical; min-height: 120px; }
.contact-form .btn { width: 100%; padding: 16px; font-size: 16px; }

/* Footer */
.footer { background: var(--bg-secondary); padding: 60px 0 20px; border-top: 1px solid var(--border-color); }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; margin-bottom: 40px; }
.footer-brand .logo { margin-bottom: 15px; }
.footer-brand p { color: var(--text-secondary); line-height: 1.7; }
.footer-links h4, .footer-social h4 { font-size: 18px; margin-bottom: 20px; color: var(--text-primary); }
.footer-links ul { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: var(--text-secondary); font-size: 15px; }
.footer-links a:hover { color: var(--primary-color); }
.social-links { display: flex; gap: 12px; }
.social-links .social-link { width: 40px; height: 40px; font-size: 16px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; border-top: 1px solid var(--border-color); }
.footer-bottom p { color: var(--text-light); font-size: 14px; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: var(--text-light); font-size: 14px; }

/* Back to Top */
.back-to-top { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; border-radius: var(--radius-full); background: var(--primary-color); color: white; display: flex; align-items: center; justify-content: center; font-size: 20px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(20px); transition: all var(--transition-normal); z-index: 999; }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-5px); }

/* Responsive - Tablet */
@media (max-width: 1024px) {
    /* keep prototype at tablet but no flex-change needed here */
    .hero-content { max-width: 100%; }
    .hero-image-wrapper { width: 300px; height: 300px; }
    .hero-name { font-size: 48px; }
    .name-part:last-child { font-size: 36px; }
    .hero-bg-shape, .hero-bg-shape-2 { opacity: 0.3; }
    .about-content { grid-template-columns: 1fr; text-align: center; }
    .about-image { order: -1; }
    .image-card { width: 250px; height: 300px; }
    .about-highlights { justify-content: center; }
    .skills-content { grid-template-columns: 1fr; }
    .contact-content { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
}

/* Responsive - Mobile: Image on TOP, Text BELOW, centered */
@media (max-width: 768px) {
    .section-title { font-size: 28px; }
    .hero-content {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
    }
    .hero-image-container {
        margin-bottom: 30px;
    }
    .hero-name { font-size: 42px; }
    .name-part:last-child { font-size: 32px; }
    .hero-title { font-size: 18px; }
    .hero-title::before { display: none; }
    .hero-cta { justify-content: center; flex-direction: column; }
    .hero-cta .btn { width: 100%; }
    .hero-social { justify-content: center; }
    .hero-image-container { margin-bottom: 30px; }
    .hero-image-wrapper { width: 280px; height: 280px; }
    .nav-menu { position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background: var(--bg-primary); box-shadow: var(--shadow-xl); padding: 80px 30px 30px; transition: right var(--transition-normal); }
    .nav-menu.active { right: 0; }
    .nav-list { flex-direction: column; align-items: flex-start; }
    .nav-link { font-size: 18px; }
    .hamburger { display: block; z-index: 1001; }
    .projects-grid { grid-template-columns: 1fr; }
    .skills-icons { gap: 15px; }
    .skill-icon-item { padding: 15px; }
    .skill-icon-item i { font-size: 30px; }
    .contact-form { padding: 25px; }
}

/* Responsive - Small Mobile */
@media (max-width: 480px) {
    .container { padding: 0 15px; }
    .section-padding { padding: 60px 0; }
    .hero-name { font-size: 32px; }
    .name-part:last-child { font-size: 24px; }
    .hero-image-wrapper { width: 220px; height: 220px; }
    .about-highlights { grid-template-columns: 1fr; }
}
