/* Professional Colorful Design Variables */
:root {
    --primary-color: #3b82f6;
    --secondary-color: #1e40af;
    --accent-color: #06b6d4;
    --tech-blue: #2563eb;
    --tech-cyan: #0891b2;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --text-muted: #9ca3af;
    --bg-color: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #1e3a8a;
    --border-color: #e2e8f0;
    --border-dark: #cbd5e1;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
    --shadow-tech: 0 0 20px rgba(59, 130, 246, 0.2);
    --gradient-tech: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #06b6d4 100%);
    --gradient-accent: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    --gradient-hero: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

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

/* Professional Typography and Layout */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Prevent layout shifts */
* {
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 20%, #dbeafe 40%, #e0f2fe 60%, #f0f9ff 80%, #f8fafc 100%) !important;
    background-attachment: fixed !important;
    min-height: 100vh;
    font-weight: 400;
    letter-spacing: -0.01em;
    position: relative;
    opacity: 1 !important;
    transition: none !important;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 15% 30%, rgba(37, 99, 235, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 85% 70%, rgba(6, 182, 212, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 50% 10%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 30% 90%, rgba(8, 145, 178, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    will-change: auto;
}

/* Loading state */
body.loading {
    overflow: hidden;
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Professional Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, border-bottom-color 0.3s ease;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    will-change: background-color, box-shadow;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--border-dark);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--tech-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo-img {
    height: 40px;
    width: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-logo a:hover {
    color: var(--primary-color);
}

.nav-logo a:hover .logo-img {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Professional Colorful Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    color: white;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: slideInLeft 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight {
    color: #60a5fa;
    font-weight: 900;
    text-shadow: 0 0 20px rgba(96, 165, 250, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.01em;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-accent);
    color: white;
    border: 2px solid var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #0891b2 100%);
    border-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.btn-primary i {
    transition: transform 0.3s ease;
}

.btn-primary:hover i {
    transform: translateX(3px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #1e3a8a;
    transform: translateY(-2px);
}

.hero-image {
    display: flex;
    justify-content: center;
    animation: slideInRight 1s ease-out;
}

.profile-card {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    padding: 1rem;
}

.profile-image {
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.8);
    overflow: hidden;
    margin-bottom: 1rem;
}

.profile-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.brand-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(37, 99, 235, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    border: 1px solid rgba(37, 99, 235, 0.3);
    backdrop-filter: blur(10px);
}

.brand-logo {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.brand-badge span {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
}

/* About Section */
.about {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #dbeafe 100%);
    border-top: 1px solid #cbd5e1;
    border-bottom: 1px solid #cbd5e1;
    position: relative;
    z-index: 2;
    opacity: 1;
    transform: none;
    will-change: auto;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
    pointer-events: none;
    will-change: auto;
    transform: translateZ(0);
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 3rem;
    color: var(--text-color);
    letter-spacing: -0.02em;
    position: relative;
}

/* Ensure section headings are not hidden by the fixed navbar when using in-page links */
:root {
    --scroll-offset: 90px; /* height of fixed navbar + spacing */
}

.section-title,
h2.section-title {
    scroll-margin-top: var(--scroll-offset);
}

/* Features section styling for readability */
.features {
    padding: 80px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f1f7ff 100%);
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 2;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.feature-card {
    background: white;
    padding: 1.25rem;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.1);
}

.feature-icon {
    font-size: 1.5rem;
    color: var(--tech-blue);
    margin-bottom: 0.75rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

.feature-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-summary {
    font-weight: 600;
    color: var(--text-color);
}

.feature-details {
    background: linear-gradient(180deg, rgba(37,99,235,0.03), rgba(6,182,212,0.02));
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(37,99,235,0.06);
    color: var(--text-light);
    font-size: 0.95rem;
}

.feature-toggle {
    align-self: flex-start;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid rgba(37,99,235,0.12);
    color: var(--tech-blue);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}

.feature-toggle[aria-expanded="true"] {
    background: rgba(37,99,235,0.06);
}

/* Technical Highlights notes grid */
.features-notes {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.feature-note {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(14,165,233,0.06);
    box-shadow: 0 6px 18px rgba(2,6,23,0.04);
}

.feature-note h4 {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
    color: var(--tech-blue);
}

.feature-note ul {
    list-style: disc inside;
    color: var(--text-light);
    line-height: 1.5;
    padding-left: 0.5rem;
    margin: 0;
}

.feature-note li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    .features-notes {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .features-notes {
        grid-template-columns: 1fr;
    }
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

/* Ensure about section and its children are stable - no animations */
.about,
.about *,
.about .skill-category,
.about .skill-tag {
    opacity: 1 !important;
    transform: none !important;
    will-change: auto !important;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #4b5563;
    line-height: 1.7;
}

.skills {
    margin-top: 2rem;
}

.skills h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-weight: 700;
}

.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.skill-category h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.01em;
}

.skill-category h4 i {
    color: var(--tech-blue);
    font-size: 1.1rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.skill-tag {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: var(--primary-color);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid #93c5fd;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
}

.skill-tag:hover {
    background: var(--gradient-accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    border-color: var(--primary-color);
}

/* Projects Section */
.projects {
    padding: 100px 0;
    background: #ffffff;
}

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

.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
    position: relative;
}

/* Colorful, eye-catching project cards */
.project-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: none;
    overflow: hidden;
}

.project-image {
    position: relative;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59,130,246,0.12), rgba(6,182,212,0.06));
}

.project-image .project-placeholder {
    font-size: 3.5rem;
    color: rgba(37,99,235,0.9);
}

/* Colored icon backplates per project */
.project-card[data-project] .project-placeholder,
.project-card[data-project] i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 18px;
    font-size: 2.4rem;
}

.project-card[data-project="ecommerce"] .project-placeholder,
.project-card[data-project="ecommerce"] i {
    background: linear-gradient(135deg, rgba(6,182,212,0.12), rgba(59,130,246,0.08));
    color: #0891b2; /* cyan */
}

.project-card[data-project="cloud-api"] .project-placeholder,
.project-card[data-project="cloud-api"] i {
    background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(37,99,235,0.06));
    color: #2563eb; /* blue */
}

.project-card[data-project="analytics"] .project-placeholder,
.project-card[data-project="analytics"] i {
    background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(99,102,241,0.06));
    color: #7c3aed; /* purple */
}

.project-card[data-project="taskflow"] .project-placeholder,
.project-card[data-project="taskflow"] i {
    background: linear-gradient(135deg, rgba(245,158,11,0.12), rgba(249,115,22,0.06));
    color: #f59e0b; /* amber */
}

.project-card .project-header {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(90deg, rgba(37,99,235,0.9), rgba(6,182,212,0.9));
    color: white;
    padding: 6px 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 6px 18px rgba(37,99,235,0.15);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
    border-color: var(--primary-color);
}

.project-image {
    height: 200px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #9ca3af;
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-title i {
    color: var(--tech-cyan);
}

.project-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

.tech-tag {
    background: linear-gradient(90deg, rgba(37,99,235,0.08), rgba(6,182,212,0.04));
    color: var(--tech-blue);
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    border: 1px solid rgba(37,99,235,0.06);
}

.project-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 8px 12px;
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(37,99,235,0.08), rgba(6,182,212,0.04));
    color: var(--tech-blue);
    text-decoration: none;
    border: 1px solid rgba(37,99,235,0.06);
    font-weight: 700;
}

.project-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(37,99,235,0.12);
}

.project-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.project-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: var(--secondary-color);
}

/* Portfolio Section */
.portfolio {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.portfolio-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.portfolio-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    line-height: 1.7;
}

.portfolio-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.portfolio-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.portfolio-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Physical-style buttons for View Wireframes and View Certificates */
#view-wireframes,
#view-certifications {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 800;
    text-decoration: none;
    color: #ffffff;
    background: linear-gradient(180deg, #6d28d9 0%, #7c3aed 50%, #c7b3ff 100%);
    box-shadow: 0 14px 22px rgba(15, 23, 42, 0.14), 0 4px 0 rgba(0,0,0,0.06) inset;
    border: 1px solid rgba(0,0,0,0.08);
    transform: translateY(0);
    transition: transform 140ms cubic-bezier(.2,.8,.2,1), box-shadow 140ms, filter 140ms;
    -webkit-tap-highlight-color: transparent;
}

#view-wireframes:hover,
#view-certifications:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 38px rgba(15,23,42,0.18), 0 4px 0 rgba(255,255,255,0.02) inset;
    filter: brightness(1.04);
}

#view-wireframes:active,
#view-certifications:active {
    transform: translateY(2px);
    box-shadow: 0 6px 10px rgba(15,23,42,0.12), inset 0 6px 14px rgba(0,0,0,0.18);
}

#view-wireframes:focus,
#view-certifications:focus {
    outline: none;
    box-shadow: 0 18px 34px rgba(99,102,241,0.18), 0 0 0 4px rgba(124,58,237,0.12);
    border-color: rgba(124,58,237,0.35);
}

/* Small icon tweak inside the button */
#view-wireframes i, #view-certifications i {
    transform: translateY(0);
    transition: transform 120ms;
}

#view-wireframes:hover i, #view-certifications:hover i {
    transform: translateY(-2px);
}

/* Portfolio icon colored backplates */
.portfolio-card[data-portfolio] .portfolio-icon,
.portfolio-card[data-portfolio] .portfolio-icon i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 14px;
    font-size: 2rem;
}

.portfolio-card[data-portfolio="resume"] .portfolio-icon,
.portfolio-card[data-portfolio="resume"] .portfolio-icon i {
    background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(6,182,212,0.06));
    color: #2563eb;
}

.portfolio-card[data-portfolio="wireframes"] .portfolio-icon,
.portfolio-card[data-portfolio="wireframes"] .portfolio-icon i {
    background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(124,58,237,0.06));
    color: #7c3aed;
}

.portfolio-card[data-portfolio="certifications"] .portfolio-icon,
.portfolio-card[data-portfolio="certifications"] .portfolio-icon i {
    background: linear-gradient(135deg, rgba(34,197,94,0.12), rgba(16,185,129,0.06));
    color: #10b981;
}
.portfolio-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.portfolio-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.portfolio-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Wireframe Project Showcase */
.wireframe-project {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.project-showcase h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.project-overview {
    margin-bottom: 2rem;
}

.project-overview p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.team-collaboration {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.team-collaboration h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.team-collaboration p {
    color: var(--text-light);
    line-height: 1.6;
}

.wireframe-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.gallery-item {
    background: white;
    border-radius: 10px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}

.gallery-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(2,6,23,0.06);
}

.gallery-actions {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
}

.gallery-placeholder-file {
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:0.5rem;
    padding:1rem;
    color:var(--text-light);
}

.gallery-placeholder-file .file-name {
    font-size:0.85rem;
    color:var(--text-color);
}

/* Lightbox styles */
.lightbox-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.lightbox-inner {
    width: 100%;
    max-width: 1100px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}
.lightbox-controls {
    display:flex;
    gap:0.5rem;
    align-items:center;
    justify-content:flex-end;
    padding:0.6rem 0.8rem;
    border-bottom:1px solid var(--border-color);
}
.lightbox-controls .lightbox-prev,
.lightbox-controls .lightbox-next,
.lightbox-controls .lightbox-close {
    background: transparent;
    border: none;
    font-size: 1.1rem;
    padding: 0.5rem 0.8rem;
    cursor: pointer;
}
.lightbox-content {
    padding: 1rem;
    display:flex;
    align-items:center;
    justify-content:center;
}

@media (max-width: 768px) {
    .lightbox-inner { max-width: 95%; }
    .gallery-thumb { height: 140px; }
}

.gallery-placeholder {
    background: var(--bg-light);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
}

.upload-area {
    border: 2px dashed var(--primary-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    background: rgba(59, 130, 246, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--secondary-color);
}

.upload-area i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.upload-area p {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.upload-area small {
    color: var(--text-muted);
}

.project-skills {
    margin-top: 1.5rem;
}

.project-skills h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.project-skills .skill-tags {
    gap: 0.5rem;
}

.project-skills .skill-tag {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.contact-info p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.contact-method:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.contact-method i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 30px;
    text-align: center;
}

.contact-method h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.contact-method p {
    color: var(--text-light);
    margin: 0;
}

/* WhatsApp Contact Special Styling */
.whatsapp-contact {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #25d366;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: block;
}

.whatsapp-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.whatsapp-contact:hover::before {
    left: 100%;
}

.whatsapp-contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}

.whatsapp-contact i {
    color: white;
    font-size: 1.5rem;
}

.whatsapp-contact h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.whatsapp-contact p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.whatsapp-contact small {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

/* Working Hours */
.working-hours {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid #3b82f6;
}

.working-hours i {
    color: white;
    font-size: 1.5rem;
}

.working-hours h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.working-hours p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0.25rem 0;
    font-size: 0.95rem;
}

.working-hours small {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.map-container {
    margin-top: 2rem;
}

.map-container h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.map {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.map.loaded::before {
    display: none;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.form-header h3 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-light);
    font-size: 1rem;
    margin: 0;
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background: var(--bg-color);
    position: relative;
    font-weight: 500;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
    background: var(--bg-light);
}

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

/* Form Success Message */
.form-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: slideInDown 0.5s ease;
}

.form-success i {
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background: var(--text-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content p {
    margin: 0;
    opacity: 0.8;
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    /* Reorder hero section for mobile: image on top, content below */
    .hero-image {
        order: 1;
    }
    
    .hero-content {
        order: 2;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-actions {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .btn {
        padding: 10px 20px;
    }

    .profile-card {
        width: 250px;
        height: 250px;
    }

    .profile-image {
        width: 120px;
        height: 120px;
        font-size: 3rem;
        margin-bottom: 0.8rem;
    }

    .brand-badge {
        padding: 0.4rem 0.8rem;
    }

    .brand-logo {
        width: 20px;
        height: 20px;
    }

    .brand-badge span {
        font-size: 0.8rem;
    }
    
    .nav-container {
        padding: 0 15px;
    }

    .logo-img {
        height: 35px;
    }

    .logo-text {
        font-size: 1.3rem;
    }
    
    .project-filters {
        gap: 0.5rem;
    }
    
    .skill-tags {
        gap: 0.4rem;
    }
    
    .skill-tag {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
    
    .profile-card {
        width: 200px;
        height: 200px;
    }
    
    .profile-image {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
        margin-bottom: 0.6rem;
    }

    .brand-badge {
        padding: 0.3rem 0.6rem;
    }

    .brand-logo {
        width: 18px;
        height: 18px;
    }

    .brand-badge span {
        font-size: 0.7rem;
    }

    .logo-img {
        height: 30px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .form-header h3 {
        font-size: 1.5rem;
    }

    .form-header p {
        font-size: 0.9rem;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.fade-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
}

.fade-in.visible,
.fade-in.animate-in {
    opacity: 1 !important;
    transform: none !important;
    will-change: auto !important;
}
/* Viewer modal styles */
.viewer-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    background: rgba(0,0,0,0.5);
}
.viewer-modal.hidden {
    display: none;
}
.viewer-content {
    background: var(--bg-color, #fff);
    color: var(--text-color, #111);
    max-width: 900px;
    width: calc(100% - 2rem);
    max-height: 85vh;
    overflow: auto;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    position: relative;
}
.viewer-body {
    padding: 1rem 1.25rem;
}
.viewer-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    font-size: 1.25rem;
    padding: 0.5rem;
    cursor: pointer;
}
.viewer-close:focus {
    outline: 2px solid var(--accent-color, #06b6d4);
    border-radius: 4px;
}