:root {
    --bg-main: #0a0a0c;
    --text-primary: #f0f0f5;
    --text-secondary: #9a9a9e;
    --card-bg: #151518;
    --accent-teal: #00e5ff;
    --accent-purple: linear-gradient(135deg, #7f00ff 0%, #e100ff 100%);
    --accent-purple-2: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent-orange: #ff512f;
    --accent-green: #00b09b;
    --accent-blue: #00c6ff;
    --accent-pink: #ff0844;
    --accent-yellow: #f6d365;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-sm: 1rem;
    --radius-md: 1.5rem;
    --radius-lg: 2.5rem;
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul { list-style: none; }

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Typography */
h1, h2, h3, h4 {
    letter-spacing: -0.02em;
    font-weight: 600;
}

.text-huge {
    font-size: clamp(2.5rem, 8vw, 6.5rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    font-weight: 700;
}

.text-lg {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* Utilities */
.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.pill:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.pill.dark {
    background: var(--text-primary);
    color: var(--bg-main);
}

.pill.white {
    background: transparent;
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: rgba(255, 255, 255, 0.1);
}

.card.p-0 { padding: 0; overflow: hidden; }
.card.teal { background: linear-gradient(135deg, #005a5d 0%, #00979c 100%); color: white; border: none; }
.card.purple { background: var(--accent-purple); color: white; border: none; }
.card.purple-2 { background: var(--accent-purple-2); color: white; border: none; }
.card.orange { background: linear-gradient(135deg, #ff512f 0%, #dd2476 100%); color: white; border: none; }
.card.green { background: linear-gradient(135deg, #00b09b 0%, #96c93d 100%); color: white; border: none; }
.card.blue { background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%); color: white; border: none; }
.card.pink { background: linear-gradient(135deg, #ff0844 0%, #ffb199 100%); color: white; border: none; }
.card.yellow { background: linear-gradient(135deg, #f6d365 0%, #fda085 100%); color: white; border: none; }
.card.lg-radius { border-radius: var(--radius-lg); }

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 4rem;
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    transition: transform 0.4s cubic-bezier(0.3, 0, 0.2, 1);
}

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

.header-nav {
    display: flex;
    gap: 3rem;
    font-weight: 500;
}
.header-nav a {
    color: var(--text-secondary);
    transition: color 0.3s;
    font-size: 1rem;
}
.header-nav a:hover {
    color: var(--text-primary);
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1001;
    padding: 0.5rem;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.3s;
}

.mobile-menu-btn:hover, .mobile-menu-btn:focus {
    color: var(--accent-teal);
    outline: none;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 20, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    text-align: center;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-overlay.active .mobile-nav-links {
    transform: translateY(0) scale(1);
}

.mobile-nav-links a {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    position: relative;
}

.mobile-nav-links a:hover, .mobile-nav-links a:focus {
    color: #ffffff;
    transform: translateY(-3px);
}

.mobile-nav-links a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-teal));
    transition: width 0.3s ease;
    border-radius: 2px;
}

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

@media (max-width: 768px) {
    .header-nav { display: none; }
    .mobile-menu-btn { display: block; }
    header { padding: 1rem 1.5rem; }
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1.125rem;
}

.logo-icon {
    width: 32px; height: 32px;
    background: #1d1d1f;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.top-section-bg {
    background: linear-gradient(180deg, #151520 0%, var(--bg-main) 100%);
    width: 100%;
    overflow: hidden;
}

/* New Hero Section */
.hero-wrapper {
    padding: 6rem 0 2rem 0;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.hero-wrapper::before {
    content: '';
    position: absolute;
    top: 0%;
    left: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 126, 95, 0.2) 0%, rgba(254, 180, 123, 0.05) 50%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(100px);
    animation: ambient-glow 8s ease-in-out infinite alternate;
}

@keyframes ambient-glow {
    0% { opacity: 0.5; transform: scale(0.9) translate(0, 0); }
    100% { opacity: 1; transform: scale(1.1) translate(20px, 30px); }
}

.hero-grid-new {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-left-new {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.hero-img-wrapper {
    position: relative;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    z-index: 1;
}

.hero-img-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(255, 126, 95, 0.35) 0%, rgba(254, 180, 123, 0.15) 40%, rgba(255, 126, 95, 0) 70%);
    z-index: -1;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(50px);
    animation: pulse-glow 6s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(0.95); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}
.hero-img-wrapper img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.15));
    -webkit-mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
}

.floating-badge {
    position: absolute;
    background: rgba(30, 30, 35, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    animation: float 6s ease-in-out infinite;
    color: var(--text-primary);
}
.floating-badge.badge-1 {
    top: 25%;
    left: -20%;
    animation-delay: 0s;
}
.floating-badge.badge-2 {
    bottom: 15%;
    right: -20%;
    animation-delay: 3s;
}
.badge-icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
}

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

/* Mission */
.mission-card {
    padding: 4rem;
    text-align: left;
    margin-bottom: 4rem;
}
.mission-card h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    margin-bottom: 3rem;
    max-width: 900px;
}

.brand-logos {
    display: flex;
    gap: 2rem;
    opacity: 0.8;
    align-items: center;
    flex-wrap: wrap;
}

/* Split Section */
.split-section {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
}

.section-heading {
    position: sticky;
    top: 2rem;
}
.section-heading h2 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.service-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
    transition: var(--transition);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(255,255,255,0.05));
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: rgba(255, 255, 255, 0.1);
}

.service-card:hover::before {
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-teal));
}

.service-icon {
    width: 55px; height: 55px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.service-card h3 {
    margin-top: 1rem;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.service-num {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    color: rgba(255, 255, 255, 0.03);
    font-weight: 800;
    font-size: 4rem;
    line-height: 1;
    transition: var(--transition);
}

.service-card:hover .service-num {
    color: rgba(255, 255, 255, 0.08);
    transform: scale(1.1);
}

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

.project-card-new {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--card-bg);
    height: 450px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.project-card-new:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
}

.project-card-new .project-img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.project-card-new .project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}

.project-card-new:hover .project-img img {
    transform: scale(1.08);
    filter: brightness(0.3) blur(2px);
}

.project-content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, rgba(10, 10, 12, 1) 0%, rgba(10, 10, 12, 0.6) 70%, transparent 100%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem 2rem;
}

.project-content-overlay h3 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.project-content-overlay .text-secondary {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.project-content-overlay .project-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.project-content-overlay .project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
}

.project-content-overlay .project-tags .pill {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 0.75rem;
}

.project-content-overlay .project-tags .pill.dark {
    background: white;
    color: black;
    border: none;
}

/* Experience */
.exp-card {
    padding: 2.5rem;
}
.exp-card h3 {
    font-size: 1.25rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

/* Contact Form */
.contact-section {
    padding: 3rem;
    text-align: center;
    margin-bottom: 2rem;
}
.contact-section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0;
}
.contact-form {
    max-width: 800px;
    margin: 2rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.form-row {
    display: flex;
    gap: 1rem;
}
.form-input {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border-radius: 2rem;
    border: none;
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
    font-family: inherit;
    font-size: 1rem;
    color: #1d1d1f;
}
.form-input::placeholder { color: rgba(29, 29, 31, 0.5); }
.form-textarea {
    border-radius: 1.5rem;
    resize: vertical;
    min-height: 150px;
}
.btn-submit {
    background: #5a5a66;
    color: white;
    border: none;
    padding: 1.2rem;
    border-radius: 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.btn-submit:hover { background: #1d1d1f; }

/* Connect Footer */
.connect-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.connect-left {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    min-height: 400px;
}
.connect-left h2 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1;
}
.connect-right {
    padding: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.floating-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    gap: 1rem;
    width: 100%;
    height: 100%;
}
.floating-pills .pill {
    font-size: 1.25rem;
    padding: 1rem 2rem;
    border: 1px solid rgba(255,255,255,0.4);
    background: transparent;
    color: white;
    cursor: pointer;
    transition: transform 0.3s;
}
.floating-pills .pill:hover {
    background: rgba(255,255,255,0.1);
    transform: scale(1.05);
}

/* Footer bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--card-bg);
    border-radius: 4rem;
    margin: 0 2rem 2rem;
}

/* Reveal Animation */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 992px) {
    .split-section, .connect-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .hero-grid-new {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-left-new {
        align-items: center;
    }
    .hero-brands {
        align-items: center;
    }
    .floating-badge.badge-1 { left: 10px; top: 65%; z-index: 2; }
    .floating-badge.badge-2 { right: 10px; bottom: 5%; z-index: 2; }
    .floating-badge { padding: 0.5rem; gap: 0.5rem; }
    .floating-badge strong { font-size: 0.8rem; }
    .floating-badge span { font-size: 0.6rem !important; }
    .badge-icon { width: 28px; height: 28px; font-size: 0.8rem; }
    .section-heading { position: static; margin-bottom: 2rem; }
    .bento-right {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .bento-img { grid-column: 1 / -1; grid-row: auto; height: 300px; }
}

@media (max-width: 768px) {
    header {
        padding: 1rem 1.5rem;
    }
    .container {
        padding: 1rem;
    }
    .grid-2x2 { grid-template-columns: 1fr; }
    .form-row { flex-direction: column; }
    .contact-section { padding: 3rem 1.5rem; }
    .mission-card { padding: 2rem; }
    .connect-left, .connect-right { padding: 2rem; min-height: 300px; }
    .project-img { height: 250px; }
    .bento-right { grid-template-columns: 1fr; }
    .bento-img { height: 250px; }
    .hero-wrapper { padding: 6rem 0 2rem 0; }
    .footer-bottom { margin: 0 1rem 1rem; padding: 1rem; flex-direction: column; gap: 1rem; }

    .hero-wrapper::before {
        width: 100%;
        max-width: 400px;
        height: 400px;
        left: 50%;
        transform: translateX(-50%);
        top: 0;
        filter: blur(50px);
    }
    .hero-img-wrapper::before {
        width: 100%;
        height: 100%;
        filter: blur(30px);
    }
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-main);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 10;
}

/* Arduino SVG */
.arduino-svg {
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}

.arduino-led {
    fill: #500;
    animation: led-blink 0.5s steps(2, start) 6 2.5s;
}

@keyframes led-blink {
    0%, 100% { fill: #500; filter: drop-shadow(0 0 0px #ff0000); }
    50% { fill: #ff3333; filter: drop-shadow(0 0 8px #ff0000); }
}

/* Terminal */
.terminal {
    background: #1e1e1e;
    border-radius: 8px;
    width: 420px;
    max-width: 90vw;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1rem;
}

.terminal-header {
    background: #2d2d2d;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.terminal-title { color: #888; margin-left: auto; font-size: 0.8rem; }

.terminal-body {
    padding: 1.5rem;
    color: #d4d4d4;
    line-height: 1.5;
}

.keyword { color: #569cd6; }
.func { color: #dcdcaa; }

/* Typing animation */
.type-line {
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    border-right: 2px solid transparent;
    display: block;
}

.type-line.line-1 { animation: typing-1 0.4s steps(15, end) forwards 0.2s; border-color: transparent; }
.type-line.line-2 { animation: typing-2 0.6s steps(29, end) forwards 0.6s; border-color: transparent; }
.type-line.line-3 { animation: typing-3 0.1s steps(1, end) forwards 1.2s; border-color: transparent; }
.type-line.line-4 { animation: typing-4 0.4s steps(13, end) forwards 1.4s; border-color: transparent; }
.type-line.line-5 { animation: typing-5 0.6s steps(33, end) forwards 1.8s; border-color: transparent; }
.type-line.line-6 { animation: typing-6 0.1s steps(1, end) forwards 2.4s, blink-caret 0.75s step-end infinite 2.5s; }

@keyframes typing-1 { from { width: 0; border-color: #d4d4d4; } to { width: 16ch; border-color: #d4d4d4; } }
@keyframes typing-2 { from { width: 0; border-color: #d4d4d4; } to { width: 29ch; border-color: #d4d4d4; } }
@keyframes typing-3 { from { width: 0; border-color: #d4d4d4; } to { width: 2ch; border-color: #d4d4d4; } }
@keyframes typing-4 { from { width: 0; border-color: #d4d4d4; } to { width: 14ch; border-color: #d4d4d4; } }
@keyframes typing-5 { from { width: 0; border-color: #d4d4d4; } to { width: 33ch; border-color: #d4d4d4; } }
@keyframes typing-6 { from { width: 0; border-color: #d4d4d4; } to { width: 2ch; border-color: #d4d4d4; } }
@keyframes blink-caret { from, to { border-color: transparent } 50% { border-color: #d4d4d4 } }

@media (max-width: 768px) {
    .preloader-content { flex-direction: column; gap: 2rem; transform: scale(0.85); }
}

/* End of service cards styling */

.floating-component {
    position: absolute;
    z-index: 1;
    opacity: 0.5;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
}

/* Mobile Responsiveness for Projects Grid */
@media (max-width: 768px) {
    .project-card-new { 
        height: 380px; 
    }
    .project-content-overlay {
        transform: translateY(0);
        opacity: 1;
        background: linear-gradient(to top, rgba(10, 10, 12, 1) 0%, rgba(10, 10, 12, 0.6) 80%, transparent 100%);
    }
    .project-content-overlay h3,
    .project-content-overlay .text-secondary,
    .project-content-overlay .project-desc,
    .project-content-overlay .project-tags {
        transform: translateY(0);
        opacity: 1;
    }
    .project-card-new .project-img img {
        filter: brightness(0.5);
    }
}
