/* =========================================
   Taha İnşaat - Bento Grid Premium Theme (Teal Edition)
   ========================================= */

:root {
    /* Color Palette - Extracted from Logo #217d8d */
    --accent: #217d8d;
    --accent-light: #2ab0c5;
    --accent-dark: #125763;
    --accent-glow: rgba(33, 125, 141, 0.15);

    /* Dark Theme Surface Colors */
    --bg-main: #050b10;
    --bg-secondary: #0a131c;
    --surface: #0f1c29;
    --surface-hover: #152636;

    /* Glassmorphism / Bento Borders */
    --surface-glass: rgba(15, 28, 41, 0.6);
    --border-glass: rgba(33, 125, 141, 0.25);
    --border-light: rgba(255, 255, 255, 0.05);

    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;

    /* Typography */
    --font-sans: 'Outfit', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;

    /* Transitions */
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Bento Settings */
    --radius-bento: 24px;
    --gap-bento: 1.5rem;
}

/* =========================================
   Reset & Base
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-main);
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--accent);
    color: #fff;
}

/* =========================================
   Custom Cursor
   ========================================= */
.cursor {
    width: 8px;
    height: 8px;
    background: var(--accent-light);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.1s, width 0.3s, height 0.3s, background 0.3s, border-color 0.3s;
}

.cursor-follower.active {
    width: 60px;
    height: 60px;
    background: var(--accent-glow);
    border-color: transparent;
}

.cursor-follower.hidden,
.cursor.hidden {
    opacity: 0;
}

@media (max-width: 768px) {

    .cursor,
    .cursor-follower {
        display: none;
    }
}

/* =========================================
   Typography & Utilities
   ========================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

.accent-text {
    color: var(--accent-light);
}

.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: clamp(3rem, 10vw, 6rem) 0;
    position: relative;
}

.dark-section {
    background-color: var(--bg-secondary);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.section-header {
    margin-bottom: clamp(2rem, 6vw, 3.5rem);
}

.section-header p {
    color: var(--text-secondary);
    font-size: clamp(1rem, 2vw, 1.15rem);
}

/* =========================================
   Buttons
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 2.8rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-sans);
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--accent);
    border-radius: 12px;
    z-index: -2;
}

.btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--accent-light);
    transition: var(--transition-smooth);
    z-index: -1;
    border-radius: 12px;
}

.btn-primary {
    background: none;
    color: #fff;
}

.btn-primary:hover {
    color: #fff;
}

.btn-primary:hover::before {
    width: 100%;
}

.btn-outline {
    background: none;
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
}

.btn-outline::after {
    background-color: transparent;
}

.btn-outline::before {
    background-color: var(--text-primary);
}

.btn-outline:hover {
    color: var(--bg-main);
    border-color: var(--text-primary);
}

.btn-outline:hover::before {
    width: 100%;
}

/* =========================================
   Navbar (Enlarged Logo)
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    padding: 1rem 0;
    background: var(--surface-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.brand {
    display: flex;
    align-items: center;
}

/* ENLARGED LOGO AS REQUESTED */
.logo {
    height: 70px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.navbar.scrolled .logo {
    height: 55px;
    /* Shrinks slightly on scroll */
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.nav-links a::after {
    content: attr(data-text);
    position: absolute;
    top: 100%;
    left: 0;
    color: var(--accent-light);
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: transparent;
}

.nav-links a:hover::after {
    top: 0;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 30px;
    height: 20px;
    justify-content: center;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-main);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
    backdrop-filter: blur(10px);
}

.mobile-links {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
}

.mobile-links a {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.mobile-menu.active .mobile-links a {
    opacity: 1;
    transform: translateY(0);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    transform: rotate(-45deg) translate(0px, -1px);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 100px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center top, var(--surface) 0%, var(--bg-main) 70%);
    z-index: -2;
}

/* Tech grid background effect modified to teal */
.hero-bg::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image:
        linear-gradient(rgba(33, 125, 141, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(33, 125, 141, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    transform: perspective(600px) rotateX(60deg) translateY(-100px);
    animation: gridMove 25s linear infinite;
    z-index: -1;
}

@keyframes gridMove {
    0% {
        transform: perspective(600px) rotateX(60deg) translateY(0);
    }

    100% {
        transform: perspective(600px) rotateX(60deg) translateY(40px);
    }
}

.hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 5%;
    z-index: 1;
}

.reveal-text {
    font-size: clamp(3rem, 7vw, 6.5rem);
    line-height: 1.05;
    margin-bottom: 2rem;
    perspective: 1000px;
}

.reveal-text .line {
    display: block;
    overflow: hidden;
    padding-bottom: 5px;
}

.reveal-text .line span {
    display: block;
    transform: translateY(105%) rotateX(-20deg);
    opacity: 0;
    transform-origin: top;
    animation: slideUpRotate 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal-text .line:nth-child(2) span {
    animation-delay: 0.2s;
}

@keyframes slideUpRotate {
    100% {
        transform: translateY(0) rotateX(0);
        opacity: 1;
    }
}

.reveal-fade {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.6s;
}

.hero-cta.reveal-fade {
    animation-delay: 0.8s;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeUp 1s forwards 1.5s;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--border-glass);
    border-radius: 15px;
    position: relative;
    background: var(--surface-glass);
    backdrop-filter: blur(5px);
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--accent-light);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        top: 6px;
        opacity: 1;
    }

    100% {
        top: 20px;
        opacity: 0;
    }
}

/* =========================================
   Bento Grid Layout (Pencere Pencere)
   ========================================= */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(auto, 250px);
    gap: var(--gap-bento);
}

@media (max-width: 768px) {
    .bento-grid {
        gap: 1rem;
    }
}

.bento-box {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-bento);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.bento-box:hover {
    transform: translateY(-5px);
    border-color: var(--border-glass);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.bento-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, var(--accent-glow) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
    pointer-events: none;
}

.bento-box:hover::before {
    opacity: 1;
}

/* Grid Cell Sizing */
.box-large {
    grid-column: span 2;
    grid-row: span 2;
}

.box-medium {
    grid-column: span 2;
    grid-row: span 1;
}

.box-small {
    grid-column: span 1;
    grid-row: span 1;
}

.box-wide {
    grid-column: span 4;
    grid-row: span 1;
}

/* Bento Box Content Types */
.bento-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    transition: transform 0.6s ease;
}

.bento-box:hover .bento-img {
    transform: scale(1.05);
}

.bento-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.bottom-content {
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(5, 11, 16, 0.95) 0%, rgba(5, 11, 16, 0.3) 50%, transparent 100%);
}

.bottom-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.bottom-content p {
    color: var(--text-secondary);
}

.bento-text {
    padding: 2.5rem;
    justify-content: center;
    z-index: 2;
}

.bento-text .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    width: 60px;
    height: 60px;
}

.bento-text .icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bento-text h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.bento-text p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
}

.bento-stat {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--surface), var(--bg-secondary));
}

.bento-stat .counter {
    font-size: 3.5rem;
    color: var(--accent-light);
    margin-bottom: 0.5rem;
    line-height: 1;
    font-family: var(--font-heading);
}

.bento-stat p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    font-weight: 500;
}

.bento-brand {
    background: var(--accent-dark);
    position: relative;
    overflow: hidden;
}

.bento-brand::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle at right, var(--accent) 0%, transparent 50%);
    opacity: 0.5;
    z-index: 1;
}

.brand-text-wrapper {
    position: relative;
    z-index: 2;
}

.brand-text-wrapper h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: #fff;
}

.brand-text-wrapper p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 80%;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.link-arrow span {
    transition: transform 0.3s ease;
}

.link-arrow:hover span {
    transform: translateX(5px);
}

/* Projects Bento Specifics */
.projects-bento {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap-bento);
    grid-auto-rows: 450px;
}

.proj-box {
    grid-column: span 1;
    grid-row: span 1;
}

/* On smaller screens make it 1 column */
@media (max-width: 900px) {
    .projects-bento {
        grid-template-columns: repeat(1, 1fr);
        grid-auto-rows: 400px;
    }
}

.bento-project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem;
    z-index: 2;
    background: linear-gradient(to top, rgba(5, 11, 16, 0.95) 0%, rgba(5, 11, 16, 0.5) 60%, transparent 100%);
    transform: translateY(20px);
    transition: transform 0.4s var(--transition-smooth);
}

.proj-box:hover .bento-project-info {
    transform: translateY(0);
}

.badge {
    display: inline-block;
    padding: 4px 14px;
    background: var(--accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 50px;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.bento-project-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.bento-project-info p {
    color: var(--text-secondary);
}

/* =========================================
   Contact Bento Panel
   ========================================= */
.bento-contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-bento);
    overflow: hidden;
}

.contact-info-panel {
    padding: 4rem;
    background: linear-gradient(135deg, rgba(33, 125, 141, 0.05) 0%, transparent 100%);
}

.contact-info-panel h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info-panel p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 400px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.icon-circle {
    width: 55px;
    height: 55px;
    border-radius: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.detail-item:hover .icon-circle {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: rotate(5deg) scale(1.05);
}

.detail-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.detail-item p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Form Panel */
.contact-form-panel {
    padding: 4rem;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-light);
}

.bento-form {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.form-header {
    margin-bottom: 2.5rem;
}

.form-header h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.input-group {
    position: relative;
    margin-bottom: 2rem;
}

.input-group input,
.input-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-glass);
    padding: 12px 0;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    resize: none;
    outline: none;
    transition: border-color 0.3s;
}

.input-group label {
    position: absolute;
    top: 12px;
    left: 0;
    color: var(--text-secondary);
    pointer-events: none;
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 1rem;
}

.input-group .line-effect {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent);
    transition: 0.4s ease;
}

.input-group input:focus,
.input-group textarea:focus {
    border-bottom-color: transparent;
}

.input-group input:focus~.line-effect,
.input-group textarea:focus~.line-effect {
    width: 100%;
}

.input-group input:focus~label,
.input-group textarea:focus~label,
.input-group input:not(:placeholder-shown)~label,
.input-group textarea:not(:placeholder-shown)~label {
    top: -18px;
    font-size: 0.8rem;
    color: var(--accent-light);
    font-weight: 500;
}

.btn-block {
    margin-top: auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-block .btn-icon {
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.btn-block:hover .btn-icon {
    transform: translateX(10px);
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background: var(--bg-main);
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--border-light);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

/* ENLARGED FOOTER LOGO */
.footer-brand .footer-logo {
    height: 60px;
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 350px;
}

.footer h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
    width: fit-content;
}

.footer-links a:hover {
    color: var(--accent-light);
    transform: translateX(5px);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    background: var(--surface);
}

.social-icons a:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: translateY(-5px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.legal-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: 0.3s;
}

.legal-links a:hover {
    color: var(--accent-light);
}

.legal-links .separator {
    margin: 0 10px;
    opacity: 0.5;
}

/* =========================================
   Animations
   ========================================= */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   Responsive Constraints (Bento Layout)
   ========================================= */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .box-large {
        grid-column: span 2;
    }

    .projects-bento {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-bento .box-wide {
        grid-column: span 2;
    }

    .bento-contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-form-panel {
        border-left: none;
        border-top: 1px solid var(--border-light);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .logo {
        height: 50px;
    }

    .bento-grid,
    .projects-bento {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .box-large,
    .box-medium,
    .box-small,
    .box-wide,
    .proj-box {
        grid-column: span 1;
    }

    .box-large,
    .bento-img {
        min-height: 300px;
        position: relative;
    }

    .projects-bento .proj-box {
        min-height: 400px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: clamp(2rem, 8vw, 3rem);
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .contact-info-panel,
    .contact-form-panel {
        padding: 2.5rem 1.5rem;
    }
}

/* --- Ultra Mobile (Phones) --- */
@media (max-width: 480px) {
    .container {
        padding: 0 6%;
    }

    .logo {
        height: 40px;
    }

    .section {
        padding: 2.5rem 0;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .footer-top {
        gap: 2.5rem;
    }

    .footer-brand .footer-logo {
        height: 45px;
    }

    .social-icons {
        justify-content: center;
        width: 100%;
    }

    /* Fixed overlapping or tight elements in bento */
    .bento-img {
        min-height: 250px;
    }

    .projects-bento .proj-box {
        min-height: 350px;
    }

    .mobile-links a {
        font-size: 1.6rem;
    }
}