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

:root {
    --bg-primary: #020617;
    --bg-secondary: #0f172a;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #1e293b;
    --accent-primary: #60a5fa;
    --accent-secondary: #22d3ee;
    --accent-blue: #2563eb;
}

body.light-mode {
    --bg-primary: #f8fafc;
    --bg-secondary: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --border-color: #cbd5e1;
    --accent-primary: #0c63e4;
    --accent-secondary: #06b6d4;
    --accent-blue: #1d4ed8;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
}

code, pre {
    font-family: 'JetBrains Mono', monospace;
}

/* Loader */
.loader-wrapper {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader-wrapper.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader {
    width: 80px;
    height: 80px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 2rem;
    position: relative;
}

.loader::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 4px solid transparent;
    border-top: 4px solid var(--accent-secondary);
    border-radius: 50%;
    animation: spin 1.5s linear infinite reverse;
}

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

.loader-text {
    font-size: 1.25rem;
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.loader-subtext {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.loader-progress {
    width: 200px;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    margin: 1.5rem auto 0;
    overflow: hidden;
}

.loader-progress-bar {
    height: 100%;
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    width: 0;
    animation: progress 2s ease-in-out forwards;
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
}

@keyframes progress {
    0% { width: 0; }
    100% { width: 100%; }
}

.loader-icon {
    font-size: 3rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    animation: lockPulse 2s ease-in-out infinite;
}

@keyframes lockPulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transform: translateY(0);
    transition: transform 0.3s;
}

nav.hidden {
    transform: translateY(-100%);
}

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

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-primary);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo:hover {
    transform: scale(1.08);
    color: var(--accent-secondary);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    padding-bottom: 0.25rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    transition: width 0.3s;
}

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(96, 165, 250, 0.1);
}

.theme-toggle-btn:hover {
    background: rgba(96, 165, 250, 0.2);
    transform: scale(1.1);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.mobile-menu-btn:hover {
    color: var(--accent-primary);
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(2, 6, 23, 0.4), rgba(2, 6, 23, 0.7), #020617);
    z-index: 1;
}

.particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 3s ease-in-out infinite;
    letter-spacing: -0.02em;
}

@keyframes glow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn {
    padding: 0.875rem 1.75rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: translateY(1px) scale(0.98);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transform: scale(0);
    animation: ripple-effect 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-effect {
    to {
        transform: scale(2.5);
        opacity: 0;
    }
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue) 0%, #1d4ed8 100%);
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
}

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

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

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.social-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: rgba(30, 41, 59, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    font-size: 1.125rem;
}

.social-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, #60a5fa, #22d3ee);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.social-icon:hover {
    background: #2563eb;
    transform: translateY(-5px) scale(1.15);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.social-icon:hover::before {
    opacity: 0.2;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    animation: bounce 1.5s infinite;
    cursor: pointer;
    font-size: 2rem;
}

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

/* Section Styles */
section {
    position: relative;
    z-index: 1;
}

.section-bg {
    background: var(--bg-primary);
    padding: 5rem 1.5rem;
}

.section-bg-alt {
    background: var(--bg-secondary);
    padding: 5rem 1.5rem;
}

.section-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: center;
}

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

.certifications-highlight {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    margin-top: 2rem;
}

.certifications-highlight h3 {
    color: var(--accent-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.certifications-highlight ul {
    list-style: none;
}

.certifications-highlight li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.certifications-highlight li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-primary);
}

.profile-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.1), transparent);
    transition: left 0.5s;
    z-index: 0;
}

.profile-card:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.2);
    transform: translateY(-5px);
}

.profile-card:hover::before {
    left: 100%;
}

.profile-card > * {
    position: relative;
    z-index: 1;
}

.profile-icon {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #22d3ee);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
    animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3); }
    50% { box-shadow: 0 8px 40px rgba(37, 99, 235, 0.6); }
}

.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.35);
    border: 3px solid rgba(96, 165, 250, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.profile-card h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.profile-card .role {
    color: var(--accent-primary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.info-section {
    text-align: left;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.info-row {
    display: flex;
    align-items: start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    transition: all 0.3s;
    padding: 0.75rem;
    border-radius: 0.5rem;
}

.info-row:hover {
    background: rgba(96, 165, 250, 0.05);
    transform: translateX(5px);
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-row i {
    color: #60a5fa;
    font-size: 1.25rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.info-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-value {
    color: var(--text-primary);
    display: block;
    font-weight: 500;
}

.info-value a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.3s;
}

.info-value a:hover {
    color: #22d3ee;
    text-decoration: underline;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.1), transparent);
    transition: left 0.5s;
    z-index: 0;
}

.service-card:hover::before {
    left: 100%;
}

.service-card > * {
    position: relative;
    z-index: 1;
}

.service-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.3);
}

.service-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    background: rgba(37, 99, 235, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--accent-primary);
    font-size: 1.75rem;
    transition: all 0.3s;
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(8deg);
    background: rgba(37, 99, 235, 0.25);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 600;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-features {
    list-style: none;
}

.service-features li {
    font-size: 0.875rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s;
}

.service-features li:hover {
    color: #cbd5e1;
    transform: translateX(5px);
}

.service-features li i {
    color: #60a5fa;
    font-size: 0.75rem;
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.portfolio-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    padding: 2rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.portfolio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #2563eb, #22d3ee);
    opacity: 0;
    transition: opacity 0.3s;
}

.portfolio-card:hover::before {
    opacity: 1;
}

.portfolio-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.25);
}

.portfolio-header {
    display: flex;
    align-items: start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.portfolio-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: rgba(37, 99, 235, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60a5fa;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.portfolio-header h3 {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.portfolio-tag {
    display: inline-block;
    background: rgba(37, 99, 235, 0.15);
    color: #60a5fa;
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
}

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

.portfolio-details {
    list-style: none;
}

.portfolio-details li {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.portfolio-details li:hover {
    color: #cbd5e1;
    transform: translateX(5px);
}

.portfolio-details li i {
    color: #60a5fa;
    font-size: 0.75rem;
}

/* Expertise Section */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.expertise-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    padding: 2rem;
    transition: all 0.3s;
}

.expertise-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
}

.expertise-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.expertise-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.5rem;
    background: rgba(37, 99, 235, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 1.5rem;
}

.expertise-card h3 {
    font-size: 1.375rem;
    color: #fff;
    font-weight: 600;
}

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

.expertise-list li {
    color: var(--text-secondary);
    display: flex;
    align-items: start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    transition: all 0.3s;
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.expertise-list li:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    transform: translateX(8px);
}

.expertise-list li i {
    color: #60a5fa;
    margin-top: 0.25rem;
    font-size: 0.75rem;
}

/* Contact Section */
.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-icon {
    font-size: 3.5rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

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

.contact-text {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.contact-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    padding: 2.5rem;
    transition: all 0.3s;
}

.contact-card:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.25);
    transform: translateY(-5px);
}

.contact-email {
    display: block;
    margin-bottom: 2rem;
}

.social-links-large {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    padding-top: 1.5rem;
    border-top: 1px solid #1e293b;
}

.social-icon-large {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    background: rgba(30, 41, 59, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    font-size: 1.25rem;
}

.social-icon-large::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, #60a5fa, #22d3ee);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.social-icon-large:hover {
    background: #2563eb;
    transform: translateY(-8px) scale(1.2);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
}

.social-icon-large:hover::before {
    opacity: 0.2;
}

/* Legal Footer */
.legal {
    padding: 3rem 1.5rem;
    background: var(--bg-secondary);
    color: var(--text-muted);
    font-size: 0.875rem;
    border-top: 1px solid var(--border-color);
}

.legal-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 1.25rem;
    align-items: start;
}

.legal-content i {
    color: #60a5fa;
    font-size: 1.5rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

/* Footer */
footer {
    padding: 2rem 1.5rem;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s;
    z-index: 999;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.scroll-top.visible {
    display: flex;
}

.scroll-top:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.5);
}

/* Light Mode Overrides */
body.light-mode nav {
    background: rgba(248, 250, 252, 0.9);
    border-bottom-color: var(--border-color);
}

body.light-mode .nav-links.active {
    background: var(--bg-secondary);
}

body.light-mode .hero-bg {
    opacity: 0.08;
}

body.light-mode .hero-gradient {
    background: linear-gradient(to bottom, rgba(248, 250, 252, 0.3), rgba(248, 250, 252, 0.6), #f8fafc);
}

body.light-mode .social-icon {
    background: rgba(203, 213, 225, 0.5);
}

body.light-mode .btn-outline {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

body.light-mode .scroll-top {
    background: linear-gradient(135deg, var(--accent-blue) 0%, #1d4ed8 100%);
}

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

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #0f172a;
        padding: 1.5rem;
        gap: 1rem;
        border-top: 1px solid #1e293b;
        border-bottom: 1px solid #1e293b;
    }

    .nav-links.active a {
        padding: 0.5rem 0;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

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

    .hero-description {
        font-size: 1rem;
    }

    h2 {
        font-size: 1.875rem;
        margin-bottom: 2rem;
    }

    .button-group {
        gap: 0.75rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    .about-grid,
    .services-grid,
    .portfolio-grid,
    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .profile-card {
        padding: 1.75rem;
    }

    .certifications-highlight {
        padding: 1.5rem;
    }

    .contact-content {
        padding: 0 1rem;
    }

    .section-bg,
    .section-bg-alt {
        padding: 3rem 1.5rem;
    }

    .scroll-top {
        width: 3rem;
        height: 3rem;
        font-size: 1.125rem;
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .legal-content {
        flex-direction: column;
        text-align: center;
    }

    .legal-content i {
        margin-top: 0;
    }
}

/* New: Hero name / intro */
.hero-intro {
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-bottom: 0.5rem;
}
.hero-name {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.25rem;
    background: linear-gradient(90deg, #60a5fa, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.role-badges {
    display: inline-flex;
    gap: 0.5rem;
    margin: 1rem 0 1.5rem;
}
.role-badges span {
    background: rgba(37,99,235,0.12);
    color: var(--text-secondary);
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Clients grid */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    align-items: center;
    justify-items: center;
}
.client-logo {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 1rem 0.75rem;
    width: 100%;
    text-align: center;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.95rem;
}

/* Contact form */
.contact-form {
    display: grid;
    gap: 0.75rem;
}
.contact-form .form-row label {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}
.contact-form .form-row input,
.contact-form .form-row textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
}
.contact-form .form-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}
.form-status { color: var(--accent-primary); margin-top: 0.5rem; }

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }

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

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

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

    .btn {
        width: 100%;
        justify-content: center;
    }

    .social-links {
        gap: 0.75rem;
    }

    .social-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .services-grid,
    .portfolio-grid {
        gap: 1.5rem;
    }

    .service-card,
    .portfolio-card {
        padding: 1.5rem;
    }

    .info-row {
        gap: 0.75rem;
        padding: 0.5rem;
    }

    .nav-container {
        padding: 1rem 1rem;
    }

    .logo {
        font-size: 1.1rem;
    }
}
