/* 
    Design System for Syed Shahrukh Ahmed Portfolio
    Colors: Dark Blue, Cyan, Slate
    Typography: Outfit (Headings), Inter (Body)
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700&family=Sacramento&display=swap');

:root {
    --primary-bg: #0a0b0d;
    --secondary-bg: #111418;
    --accent: #e11d48;
    --accent-hover: #9f1239;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --card-bg: rgba(22, 27, 34, 0.7);
    --border-color: rgba(225, 29, 72, 0.15);
    --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--primary-bg);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

section {
    padding: 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.container {
    width: 100%;
}

/* Reusable Components */

.btn {
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #e11d48 0%, #881337 100%);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(225, 29, 72, 0.2);
}

.btn-primary:hover {
    background: #ffffff;
    color: #e11d48;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(225, 29, 72, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background: rgba(225, 29, 72, 0.1);
    transform: translateY(-2px);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(to right, #ffffff, #e11d48, #881337);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
    .section-title h2 {
        font-size: 2rem;
    }
    .section-title p {
        font-size: 1rem;
    }
}


.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(10, 11, 13, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 2.4rem;
    font-weight: 400;
    font-family: 'Sacramento', cursive;
    color: var(--text-main);
    display: flex;
    align-items: flex-end;
    transition: var(--transition);
    line-height: 1;
    padding-bottom: 5px;
}

@media (max-width: 768px) {
    .logo {
        font-size: 2rem;
    }
}


.logo::after {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    margin-left: 4px;
    margin-bottom: 8px;
    box-shadow: 0 0 15px var(--accent);
}

.logo:hover {
    transform: rotate(-2deg) scale(1.05);
    color: var(--accent);
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 30px;
}

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

.menu-btn {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-main);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    padding-top: 100px;
    gap: 50px;
}

.hero-content {
    flex: 1.2;
}

.hero-content h4 {
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-content h1 {
    font-size: 5rem;
    margin-bottom: 25px;
    background: linear-gradient(to right, #ffffff, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    font-weight: 800;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
}


.hero-content h1 span {
    display: block;
    font-size: 2.2rem;
    font-weight: 400;
    margin-top: 15px;
    color: var(--text-muted);
    background: none;
    -webkit-text-fill-color: var(--text-muted);
}

.hero-content h2 {
    font-size: 1.8rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.hero-content p {
    max-width: 600px;
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.hero-visual {
    flex: 0.8;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

@media (max-width: 768px) {
    .hero-visual {
        flex-direction: column;
        height: auto !important;
        min-height: auto;
        gap: 15px;
        padding-top: 20px;
        flex-wrap: wrap;
        display: flex;
        justify-content: center;
    }
    
    .profile-frame {
        margin-bottom: 20px;
    }

    .hero-visual-chips {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        width: 100%;
    }
}


.terminal-card {
    position: relative;
    width: 320px;
    height: 220px;
    background: rgba(10, 11, 13, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.6);
    overflow: hidden;
    z-index: 10;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: terminalPulse 4s infinite alternate;
}

@keyframes terminalPulse {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-10px) scale(1.02); }
}

.terminal-header {
    height: 35px;
    background: rgba(135, 19, 55, 0.2);
    display: flex;
    align-items: center;
    padding: 0 15px;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.terminal-title {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: 'Courier New', Courier, monospace;
}

.terminal-body {
    padding: 20px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    color: var(--text-main);
}

.terminal-line {
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
}

.line-prompt { color: var(--accent); font-weight: bold; }
.line-cursor {
    width: 8px;
    height: 15px;
    background: var(--accent);
    margin-left: 2px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

@media (max-width: 768px) {
    .terminal-card {
        width: 280px;
        height: 180px;
        margin: 0 auto;
    }
}

.blob-shape {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #e11d48 0%, #4c0519 100%);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    filter: blur(120px);
    opacity: 0.25;
    animation: blobMorph 10s infinite alternate;
    z-index: 1;
}


@keyframes blobMorph {
    0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    100% { border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%; }
}

.tech-chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    z-index: 15;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3), 0 0 15px rgba(225, 29, 72, 0.05);
    animation: floatChip 5s infinite ease-in-out;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .tech-chip {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        animation: none !important;
        transform: none !important;
    }
}


.tech-chip i {
    color: var(--accent);
    font-size: 1.1rem;
}

.tech-chip:hover {
    background: rgba(225, 29, 72, 0.1);
    border-color: var(--accent);
    transform: translateY(-5px) scale(1.05) !important;
    box-shadow: 0 15px 30px rgba(225, 29, 72, 0.15);
    cursor: default;
}

.tech-chip:nth-child(even) {
    animation-delay: 1s;
    animation-duration: 6s;
}

.tech-chip:nth-child(3n) {
    animation-delay: 0.5s;
    animation-duration: 7s;
}

@keyframes floatChip {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-10px) translateX(5px); }
    50% { transform: translateY(5px) translateX(-5px); }
    75% { transform: translateY(-5px) translateX(8px); }
}

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

.about-text p {
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat h3 {
    font-size: 2.2rem;
    color: var(--accent);
    margin-bottom: 5px;
}

.stat span {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.about-image {
    position: relative;
}

.image-box {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.image-box img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(0.2) contrast(1.1);
    transition: var(--transition);
}

.image-box:hover img {
    filter: grayscale(0);
}

.experience-card {
    position: absolute;
    bottom: 30px;
    right: -20px;
    background: var(--accent);
    color: #ffffff;
    padding: 18px 30px;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(225, 29, 72, 0.3);
    transform: rotate(-3deg);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.skill-category {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.skill-category:hover {
    border-color: var(--accent);
    transform: translateY(-10px);
    background: rgba(18, 20, 29, 0.9);
}

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.skill-category h3 i {
    color: var(--accent);
}

.skill-category ul li {
    margin-bottom: 18px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1rem;
}

.skill-category ul li i {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.project-card {
    background: var(--card-bg);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: var(--text-main);
    font-weight: 700;
}

.project-description {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.project-meta {
    margin-bottom: 20px;
}

.project-role {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
}

.project-role i {
    font-size: 0.85rem;
}

.project-features {
    margin-bottom: 20px;
}

.project-features h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--text-main);
    font-weight: 600;
}

.project-features ul {
    list-style: none;
    padding: 0;
}

.project-features li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.project-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
    font-size: 0.8rem;
}

.project-tech {
    margin-bottom: 25px;
}

.project-tech h4 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--text-main);
    font-weight: 600;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags span {
    background: rgba(225, 29, 72, 0.1);
    color: var(--accent);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(225, 29, 72, 0.2);
}

.project-links {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.private-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.private-badge i {
    font-size: 0.7rem;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 6px;
}

.read-more-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--accent);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    margin-top: 15px;
    width: fit-content;
}

.read-more-btn:hover {
    background: rgba(225, 29, 72, 0.1);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.read-more-btn i {
    transition: var(--transition);
    font-size: 0.8rem;
}

.read-more-btn.expanded i {
    transform: rotate(180deg);
}

.project-expanded {
    animation: slideDown 0.3s ease-out;
}

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

.btn-text {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-text:hover {
    gap: 12px;
    color: var(--text-main);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.service-card {
    background: var(--card-bg);
    padding: 50px 30px;
    border-radius: 24px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    background: var(--secondary-bg);
    border-color: var(--accent);
    transform: translateY(-8px);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(34, 211, 238, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 25px;
    transition: var(--transition);
    flex-shrink: 0;
}


.service-card:hover .service-icon {
    background: var(--accent);
    color: var(--primary-bg);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 100%;
    gap: 40px;
    background: var(--card-bg);
    padding: 30px;
    border-radius: 32px;
    border: 1px solid var(--border-color);
}

@media (min-width: 1024px) {
    .contact-container {
        grid-template-columns: 1fr 1.5fr;
        padding: 70px;
        gap: 60px;
    }
}


.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.contact-cards {
    display: grid;
    gap: 20px;
    margin-bottom: 40px;
}

.contact-card-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    background: rgba(30, 41, 59, 0.4);
    padding: 25px 20px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

@media (min-width: 480px) {
    .contact-card-mini {
        flex-direction: row;
        text-align: left;
        padding: 20px;
    }
}


.contact-card-mini:hover {
    background: rgba(34, 211, 238, 0.05);
    border-color: var(--accent);
    transform: translateX(10px);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: rgba(34, 211, 238, 0.1);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent);
    font-size: 1.4rem;
}

.card-text span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.card-text p {
    font-size: 1.05rem;
    color: var(--text-main);
    font-weight: 600;
}

.freelance-platforms {
    margin-bottom: 40px;
}

.freelance-platforms h4 {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.platform-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 600px) {
    .platform-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1100px) {
    .platform-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


.platform-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(30, 41, 59, 0.3);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    font-weight: 600;
}

.platform-card:hover {
    background: rgba(225, 29, 72, 0.05);
    border-color: var(--accent);
    transform: translateY(-5px);
}

.platform-card i {
    font-size: 1.2rem;
}

.fiverr-icon {
    font-family: serif;
    font-weight: 900;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1;
}

.social-links-enhanced {
    display: flex;
    gap: 15px;
    justify-content: center;
}

@media (min-width: 1024px) {
    .social-links-enhanced {
        justify-content: flex-start;
    }
}


.social-links-enhanced a {
    width: 45px;
    height: 45px;
    background: rgba(10, 12, 16, 0.9);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.social-links-enhanced a:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-5px) rotate(8deg);
}

.contact-form {
    display: grid;
    gap: 25px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 18px 22px;
    background: rgba(10, 12, 16, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--accent);
    background: rgba(15, 23, 42, 0.9);
}

@media (max-width: 768px) {
    .contact-info h3 { font-size: 1.6rem; text-align: center; }
    .freelance-platforms h4 { text-align: center; }
    .form-group input, .form-group textarea { padding: 15px; font-size: 0.95rem; }
}


/* Footer Section */
footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-color);
    margin-top: 120px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    font-size: 3rem;
    font-family: 'Sacramento', cursive;
    color: var(--text-main);
    margin-bottom: 20px;
    display: inline-flex;
    align-items: flex-end;
    line-height: 1;
}

.footer-logo::after {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    margin-left: 5px;
    margin-bottom: 10px;
    box-shadow: 0 0 20px var(--accent);
}

footer p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1rem;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 35px;
}

.footer-socials a {
    color: var(--text-muted);
    font-size: 1.4rem;
    transition: var(--transition);
}

.footer-socials a:hover {
    color: var(--accent);
    transform: scale(1.2);
}

/* Global Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.6s; }
.delay-5 { transition-delay: 0.75s; }

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-content h1 { font-size: 3.5rem; }
    .about-grid { gap: 40px; }
}


@media (max-width: 768px) {
    section { 
        padding: 60px 4%; 
        max-width: 100%;
        margin: 0 auto;
        width: 100%;
        box-sizing: border-box;
    }
    .hero { 
        flex-direction: column-reverse; 
        text-align: center; 
        padding-top: 120px; 
        gap: 30px;
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
    }
    .hero-visual { width: 100%; }
    .hero-content { 
        width: 100%;
        max-width: 100%;
        padding: 0 4%;
        box-sizing: border-box;
    }
    .hero-btns { 
        justify-content: center; 
        flex-direction: column; 
        gap: 15px; 
        align-items: center;
        width: 100%;
    }
    .btn { 
        width: 100%; 
        max-width: 280px; 
        text-align: center;
        padding: 14px 24px;
        font-size: 16px;
    }
    .about-grid, .projects-grid, .skills-grid, .services-grid { grid-template-columns: 1fr; }
    .about-image { order: -1; margin-bottom: 40px; }
    .nav-links { 
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 11, 13, 0.98);
        padding: 40px 4%;
        gap: 25px;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-sizing: border-box;
    }
    .nav-links.active {
        display: flex;
        animation: slideDown 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    }
    @keyframes slideDown {
        from { transform: translateY(-10px); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }
    .menu-btn { display: block; }
    .experience-card { right: 0; bottom: 20px; padding: 12px 20px; font-size: 0.9rem; }
}

@media (max-width: 480px) {
    section { 
        padding: 50px 3%; 
        max-width: 100%;
        margin: 0 auto;
        width: 100%;
        box-sizing: border-box;
    }
    .contact-container { 
        padding: 25px 3%; 
        max-width: 100%;
        margin: 0 auto;
        width: 100%;
        box-sizing: border-box;
    }
    .hero-content { 
        padding: 0 3%; 
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    .hero-content h1 { font-size: 2.2rem; }
    .about-stats { grid-template-columns: 1fr; gap: 15px; }
    .stat { text-align: center; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; }
    .stat:last-child { border-bottom: none; }
    
    /* Contact form button specific styling */
    .contact-form .btn {
        width: 100%;
        max-width: 100%;
        padding: 16px 24px;
        font-size: 16px;
        margin-top: 10px;
        border-radius: 8px;
    }
    
    /* Service cards mobile optimization */
    .service-card {
        padding: 25px 20px;
        text-align: center;
    }
    .service-icon {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    /* Footer responsive styling */
    footer {
        padding: 60px 0 30px;
        margin-top: 80px;
    }
    
    .footer-content {
        padding: 0 3%;
        text-align: center;
    }
    
    .footer-logo {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }
    
    .footer-socials {
        gap: 25px;
        margin-bottom: 20px;
    }
    
    .footer-socials a {
        font-size: 1.2rem;
    }
    
    footer p {
        font-size: 0.9rem;
        margin-bottom: 0;
        line-height: 1.5;
        padding: 0 10px;
    }
}

/* Additional mobile footer optimization */
@media (max-width: 768px) {
    footer {
        padding: 70px 0 35px;
        margin-top: 100px;
    }
    
    .footer-content {
        padding: 0 4%;
    }
    
    .footer-logo {
        font-size: 2.8rem;
        margin-bottom: 25px;
    }
    
    .footer-socials {
        gap: 30px;
        margin-bottom: 25px;
    }
    
    footer p {
        font-size: 0.95rem;
        margin-bottom: 0;
    }
}


/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #e11d48;
    color: #ffffff;
    font-size: 28px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(225, 29, 72, 0.3);
    z-index: 100;
    transition: var(--transition);
    pointer-events: auto;
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}

.whatsapp-float:hover {
    transform: scale(1.05) rotate(8deg);
    background: #ffffff;
    color: #e11d48;
    box-shadow: 0 15px 35px rgba(225, 29, 72, 0.5);
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 80px;
        right: 16px;
        width: 48px;
        height: 48px;
        font-size: 20px;
        box-shadow: 0 8px 20px rgba(225, 29, 72, 0.3);
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 70px;
        right: 12px;
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
}

/* Hide browser inspector elements */
#brightness-filter,
.__web-inspector-hide-shortcut__ {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* WhatsApp button container to prevent layout interference */
.whatsapp-float-wrapper {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 100px;
    height: 100px;
    pointer-events: none;
    z-index: 100;
}

.whatsapp-float {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: #e11d48;
    color: #ffffff;
    font-size: 28px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(225, 29, 72, 0.3);
    transition: var(--transition);
    pointer-events: auto;
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}

.whatsapp-float:hover {
    transform: scale(1.05) rotate(8deg);
    background: #ffffff;
    color: #e11d48;
    box-shadow: 0 15px 35px rgba(225, 29, 72, 0.5);
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 80px;
        right: 16px;
        width: 48px;
        height: 48px;
        font-size: 20px;
        box-shadow: 0 8px 20px rgba(225, 29, 72, 0.3);
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 70px;
        right: 12px;
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
}

/* Ensure WhatsApp button doesn't interfere with mobile menu */
@media (max-width: 768px) {
    .nav-links.active ~ .whatsapp-float-wrapper .whatsapp-float {
        opacity: 0.5;
        pointer-events: none;
    }
}
