/* Custom CSS for Sinan Topalı — Modern Portfolio */

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --primary-glow: rgba(37, 99, 235, 0.15);
    --accent-color: #f59e0b;
    --accent-dark: #d97706;
    --accent-light: #fbbf24;
    --secondary-color: #64748b;
    --dark-color: #0f172a;
    --dark-surface: #1e293b;
    --surface: #ffffff;
    --surface-alt: #f8fafc;
    --muted: #64748b;
    --text: #1e293b;
    --text-light: #475569;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --shadow-xs: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-sm: 0 4px 16px rgba(0,0,0,0.06);
    --shadow: 0 12px 40px rgba(0,0,0,0.08);
    --shadow-lg: 0 24px 64px rgba(0,0,0,0.12);
    --shadow-primary: 0 12px 32px rgba(37, 99, 235, 0.25);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
    scroll-behavior: smooth;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.7;
    color: var(--text);
    background: var(--surface-alt);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    color: var(--dark-color);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

.fw-600 { font-weight: 600; }

.min-vh-75 {
    min-height: 75vh;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.05);
    border-bottom: none;
    transition: all var(--transition);
    padding: 0.75rem 0;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.98) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff !important;
    -webkit-text-fill-color: unset;
    background: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.brand-logo {
    height: 34px;
    width: auto;
    display: block;
}

.brand-logo-sm {
    height: 28px;
    width: auto;
    display: block;
}

.nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition);
    color: rgba(255,255,255,0.7) !important;
    position: relative;
    padding: 0.5rem 1rem !important;
    letter-spacing: 0.01em;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-light);
    transition: all var(--transition);
    transform: translateX(-50%);
    border-radius: 1px;
}

.nav-link:hover {
    color: #fff !important;
}

.nav-link:hover::after {
    width: 24px;
}

.dropdown-menu {
    background: var(--dark-surface);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    color: rgba(255,255,255,0.8);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all var(--transition);
}

.dropdown-item:hover {
    background: rgba(37, 99, 235, 0.15);
    color: #fff;
}

/* ============================================
   PAGE HERO — shared across all inner pages
   ============================================ */
.page-hero {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--dark-surface) 100%);
    color: #fff;
    padding: 4rem 0 3.5rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245,158,11,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero h1 {
    color: #fff;
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.page-hero .lead {
    color: rgba(255,255,255,0.7);
    font-size: 1.15rem;
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.page-hero .badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(37,99,235,0.2);
    border: 1px solid rgba(37,99,235,0.3);
    color: rgba(255,255,255,0.9);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
    transition: all var(--transition);
    background: #fff;
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: var(--shadow);
}

.card:hover::before {
    opacity: 1;
}

.card .card-body {
    padding: 1.75rem;
}

.card .card-body .mb-3 i {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--primary-glow);
    color: var(--primary-color);
    font-size: 1.2rem;
}

.card .card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
}

.card .card-text {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    background: var(--primary-color);
    border: none;
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 0.75rem 1.75rem;
    box-shadow: var(--shadow-primary);
    transition: all var(--transition);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-lg {
    padding: 0.85rem 2rem;
    font-size: 1rem;
    border-radius: 12px;
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-dark {
    border-radius: var(--radius-sm);
    font-weight: 600;
    padding: 0.7rem 1.5rem;
    transition: all var(--transition);
    border-width: 2px;
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-outline-dark:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   HOME — HERO
   ============================================ */
.home-hero {
    background: linear-gradient(135deg, var(--dark-color) 0%, #1a2744 50%, var(--dark-surface) 100%);
    padding: 5rem 0 4rem;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.home-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37,99,235,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.home-hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: 10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245,158,11,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.home-hero h1 {
    color: #fff;
    font-weight: 800;
    line-height: 1.15;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    position: relative;
    z-index: 1;
}

.home-hero .lead {
    color: rgba(255,255,255,0.65);
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 520px;
    position: relative;
    z-index: 1;
}

.home-hero .btn-primary {
    background: #fff;
    color: var(--dark-color);
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border-radius: 12px;
    padding: 0.85rem 2rem;
}

.home-hero .btn-primary:hover {
    background: var(--accent-light);
    color: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

.hero-photo {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    background: transparent;
    padding: 0;
    z-index: 1;
}

.hero-photo img {
    width: 100%;
    display: block;
    border-radius: 20px;
    object-fit: cover;
}

/* ============================================
   STAT TILES
   ============================================ */
.stat-tile {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(37, 99, 235, 0.15);
}

.stat-tile .stat-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--primary-glow);
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.stat-tile .h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-color);
    -webkit-text-fill-color: unset;
    background: none;
    margin-bottom: 0.25rem;
}

.stat-tile p {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
}

/* ============================================
   SERVICES PAGE
   ============================================ */
.service-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(37, 99, 235, 0.15);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card .service-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--primary-glow);
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    transition: all var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.05);
}

.service-card h5 {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Why choose — reasons */
.reason-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    background: #fff;
    transition: all var(--transition);
    margin-bottom: 0.75rem;
}

.reason-item:hover {
    border-color: rgba(37, 99, 235, 0.15);
    box-shadow: var(--shadow-xs);
}

.reason-item .reason-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    color: #fff;
    font-size: 0.9rem;
}

/* ============================================
   PROJECTS PAGE
   ============================================ */
.project-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    height: 100%;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(37, 99, 235, 0.15);
}

.project-card .project-thumb {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-card .project-thumb .project-initial {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255,255,255,0.9);
    letter-spacing: -0.03em;
    text-transform: uppercase;
    z-index: 1;
}

.project-card .project-thumb .project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    opacity: 0;
}

.project-card:hover .project-overlay {
    background: rgba(0,0,0,0.4);
    opacity: 1;
}

.project-card .card-body {
    padding: 1.5rem;
}

.project-card .card-body h5 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.project-card .card-body p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

.project-colors {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
}

.project-colors-2 {
    background: linear-gradient(135deg, #059669 0%, #0d9488 100%);
}

.project-colors-3 {
    background: linear-gradient(135deg, #dc2626 0%, #ea580c 100%);
}

.project-colors-4 {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
}

.project-colors-5 {
    background: linear-gradient(135deg, #0891b2 0%, #0284c7 100%);
}

.project-colors-6 {
    background: linear-gradient(135deg, #d97706 0%, #dc2626 100%);
}

/* ============================================
   HERO SECTION (generic .hero class)
   ============================================ */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero .display-4 {
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero .lead {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
}

.placeholder-box {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-bounce);
}

.placeholder-box:hover {
    transform: translateY(-6px);
}

/* ============================================
   ARTICLE CONTENT
   ============================================ */
.article-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-light);
}

.article-content p {
    margin-bottom: 1.75rem;
}

.article-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border);
}

.article-content h3 {
    margin-top: 1.75rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.article-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition);
    border-bottom: 1px solid rgba(37,99,235,0.3);
}

.article-content a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-dark);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    margin-top: auto;
}

footer p {
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

.footer-modern {
    background: var(--dark-color);
    color: #fff;
    margin-top: 0;
    border-top: none;
}

.footer-top {
    padding-top: 1rem !important;
}

.footer-brand {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    -webkit-text-fill-color: unset;
    background: none;
    margin-bottom: 1rem !important;
}

.footer-text {
    font-size: 0.9rem;
    line-height: 1.65;
    color: #94a3b8;
}

.footer-heading {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(4px);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    color: #94a3b8;
    border: 1px solid rgba(255,255,255,0.08);
    transition: all var(--transition);
    font-size: 1rem;
    text-decoration: none;
}

.footer-social-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.footer-contact-item {
    padding: 0.85rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255,255,255,0.06);
    transition: all var(--transition);
}

.footer-contact-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255,255,255,0.1);
}

.footer-contact-label {
    color: #94a3b8;
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    font-size: 0.8rem;
}

.footer-contact-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition);
    display: inline-block;
}

.footer-contact-link:hover {
    color: var(--primary-light);
}

.footer-divider {
    height: 1px;
    background: rgba(255,255,255,0.06);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem 0 !important;
}

.footer-copyright {
    color: #64748b;
    font-size: 0.85rem;
}

.footer-meta {
    color: #64748b;
    font-size: 0.8rem;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-hero {
    position: relative;
    padding: 0;
}

.contact-hero-surface {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--dark-color), var(--dark-surface));
    border: none;
    box-shadow: var(--shadow);
    align-items: center;
    color: #fff;
}

.contact-hero h1 {
    color: #fff;
    -webkit-text-fill-color: unset;
    background: none;
}

.contact-hero .lead {
    color: rgba(255,255,255,0.65);
}

.contact-hero-avatar {
    position: relative;
    width: 110px;
    height: 110px;
    justify-self: end;
}

.contact-hero-avatar .glow {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(37, 99, 235, 0.4), transparent 55%),
                radial-gradient(circle at 70% 70%, rgba(245, 158, 11, 0.3), transparent 55%);
    filter: blur(6px);
}

.contact-hero-avatar .avatar-circle {
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    display: grid;
    place-items: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    color: #fff;
    font-size: 28px;
    border: 1px solid rgba(255,255,255,0.15);
}

.contact-badges {
    margin-top: 0.75rem;
}

.contact-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    font-size: 0.85rem;
}

/* Contact Method Cards */
.contact-method-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    padding: 2.5rem 2rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
    text-decoration: none;
    color: var(--text);
    transition: all var(--transition);
    height: 100%;
}

.contact-method-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: rgba(37, 99, 235, 0.25);
    color: var(--text);
}

.contact-method-card:hover .contact-method-icon {
    transform: scale(1.1);
    box-shadow: var(--shadow-primary);
}

.contact-method-card--whatsapp:hover {
    border-color: rgba(37, 211, 102, 0.35);
}

.contact-method-card--whatsapp:hover .contact-method-icon--whatsapp {
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.3);
}

.contact-method-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--primary-color);
    color: #fff;
    font-size: 1.5rem;
    transition: all var(--transition-bounce);
}

.contact-method-icon--whatsapp {
    background: #25d366;
}

.contact-method-value {
    color: var(--text-light);
    font-size: 0.95rem;
}

.contact-method-action {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.25rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.contact-method-card--whatsapp .contact-method-action {
    color: #25d366;
}

.contact-method-action i {
    transition: transform var(--transition);
}

.contact-method-card:hover .contact-method-action i {
    transform: translateX(4px);
}

/* Projects Grid */
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.projects-grid .project-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all var(--transition);
    font-size: 0.85rem;
    font-weight: 500;
}

.projects-grid .project-link i {
    font-size: 0.7rem;
    opacity: 0.5;
}

.projects-grid .project-link:hover {
    background: var(--primary-glow);
    color: var(--primary-dark);
    padding-left: 1rem;
}

/* Contact Info Cards */
.contact-info-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow-xs);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.contact-info-card:hover {
    box-shadow: var(--shadow-sm);
    border-color: rgba(37, 99, 235, 0.15);
}

.card-header-icon {
    display: flex;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--primary-glow);
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
}

.card-title {
    color: var(--dark-color);
    font-size: 1.1rem;
}

.contact-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.contact-meta-row {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.65rem;
    background: var(--surface-alt);
    border-radius: 8px;
    border: 1px solid var(--border-light);
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.8rem;
}

.contact-method {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius-sm);
    background: var(--surface-alt);
    border: 1px solid var(--border-light);
    transition: all var(--transition);
}

.contact-method:hover {
    border-color: rgba(37, 99, 235, 0.15);
    background: #fff;
}

.method-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    background: var(--primary-color);
    color: #fff;
    font-size: 1rem;
}

.method-content {
    flex: 1;
}

.method-content a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all var(--transition);
    display: inline-block;
}

.method-content a:hover {
    color: var(--primary-dark);
}

/* Social Grid */
.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.social-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 1rem 0.75rem;
    border-radius: var(--radius-sm);
    background: var(--surface-alt);
    border: 1px solid var(--border);
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all var(--transition);
}

.social-btn i {
    font-size: 1.25rem;
    color: var(--primary-color);
    transition: all var(--transition);
}

.social-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.social-btn:hover i {
    color: #fff;
}

/* Projects List (in sidebar) */
.projects-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.projects-list li {
    margin-bottom: 0.5rem;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all var(--transition);
    font-size: 0.85rem;
    font-weight: 500;
}

.project-link:hover {
    background: var(--primary-glow);
    color: var(--primary-dark);
    padding-left: 1rem;
}

/* Responsive Contact Page */
@media (max-width: 768px) {
    .contact-hero-surface {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .contact-hero-avatar {
        justify-self: start;
    }

    .contact-method-card {
        padding: 1.5rem 1rem;
    }
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-hero {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--dark-surface) 100%);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.about-hero h1 {
    color: #fff;
    -webkit-text-fill-color: unset;
    background: none;
}

.about-hero .lead {
    color: rgba(255,255,255,0.65);
}

/* About Sections */
.about-section {
    position: relative;
    padding: 2rem;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
    transition: all var(--transition);
}

.about-section:hover {
    box-shadow: var(--shadow-sm);
    border-color: rgba(37, 99, 235, 0.12);
}

.section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--primary-glow);
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
}

.section-title {
    color: var(--dark-color);
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.85rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-text {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* Expertise Grid */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.expertise-card {
    padding: 1.75rem 1.25rem;
    border-radius: var(--radius);
    background: var(--surface-alt);
    border: 1px solid var(--border);
    text-align: center;
    transition: all var(--transition);
}

.expertise-card:hover {
    border-color: rgba(37, 99, 235, 0.15);
    box-shadow: var(--shadow-sm);
    transform: translateY(-4px);
}

.expertise-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--primary-color);
    color: #fff;
    font-size: 1.4rem;
    margin: 0 auto 1rem;
    transition: all var(--transition);
}

.expertise-card:hover .expertise-icon {
    transform: scale(1.08);
}

.expertise-title {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.expertise-desc {
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Languages Grid */
.languages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.language-item {
    padding: 1.5rem 1rem;
    border-radius: var(--radius);
    background: var(--surface-alt);
    border: 1px solid var(--border);
    text-align: center;
    transition: all var(--transition);
}

.language-item:hover {
    border-color: rgba(37, 99, 235, 0.15);
    box-shadow: var(--shadow-sm);
    transform: translateY(-3px);
}

.language-flag {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    font-size: 1.2rem;
    margin: 0 auto 0.75rem;
    transition: all var(--transition);
}

.language-item:hover .language-flag {
    transform: scale(1.1);
    box-shadow: var(--shadow-primary);
}

.language-item h5 {
    color: var(--dark-color);
    margin-bottom: 0.4rem;
    font-weight: 700;
    font-size: 0.95rem;
}

.language-level {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: var(--primary-glow);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.75rem;
}

/* Profile Card */
.profile-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.profile-card:hover {
    box-shadow: var(--shadow);
}

.profile-image {
    overflow: hidden;
}

.profile-image img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.profile-body {
    padding: 1.75rem;
}

.profile-name {
    color: var(--dark-color);
    font-size: 1.3rem;
    margin-bottom: 0.35rem;
}

.profile-title {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    padding: 1.25rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 1.25rem 0;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-color);
    -webkit-text-fill-color: unset;
    background: none;
}

.stat-label {
    display: block;
    font-size: 0.72rem;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays */
.animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.15s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(6) { transition-delay: 0.25s; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-24px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(24px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.fade-in { animation: fadeIn 0.6s ease-out; }
.slide-in-left { animation: slideInLeft 0.6s ease-out; }
.slide-in-right { animation: slideInRight 0.6s ease-out; }
.float { animation: float 4s ease-in-out infinite; }

/* ============================================
   TOASTS
   ============================================ */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 2000;
}

.toast-message {
    min-width: 280px;
    max-width: 380px;
    background: #fff;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.25rem;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast-message.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-message .toast-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.9rem;
}

.toast-message .btn-close { opacity: 0.5; }
.toast-message .btn-close:hover { opacity: 0.9; }
.toast-success { border-color: #10b981; }
.toast-danger { border-color: #ef4444; }
.toast-info { border-color: var(--primary-color); }

/* ============================================
   UTILITY & ACCESSIBILITY
   ============================================ */
a:focus,
button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: var(--primary-glow);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    transition: all var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.social-links a i {
    font-size: 1.1rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .home-hero {
        padding: 3.5rem 0 3rem;
    }

    .page-hero {
        padding: 3rem 0 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
    }

    .home-hero {
        padding: 3rem 0 2.5rem;
    }

    .home-hero h1 {
        font-size: 2rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .lead {
        font-size: 1rem;
    }

    .navbar-brand {
        font-size: 1.15rem;
    }

    .stat-tile .h1 {
        font-size: 2rem;
    }

    .about-hero {
        padding: 2rem 1.5rem;
    }

    .section-title::after {
        width: 32px;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .languages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-card {
        position: static !important;
    }
}

@media (max-width: 576px) {
    .home-hero {
        padding: 2.5rem 0 2rem;
    }

    .page-hero {
        padding: 2.5rem 0 2rem;
    }

    .languages-grid {
        grid-template-columns: 1fr;
    }
}

/* ==============================
   About Photo Gallery
   ============================== */
.about-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    cursor: pointer;
}

.gallery-item-wide {
    grid-column: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .about-gallery {
        grid-template-columns: 1fr 1fr;
    }
    .gallery-item-wide {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .about-gallery {
        grid-template-columns: 1fr;
    }
    .gallery-item-wide {
        grid-column: span 1;
    }
}
