/* ============================================
   IGLOO.INC INSPIRED PORTFOLIO
   Dark | Minimal | Premium | Animated
   💎 Syed Ansar Ali
   ============================================ */

/* === Variables === */
:root {
    --black: #0a0a0a;
    --dark: #111111;
    --dark-2: #1a1a1a;
    --gray-dark: #2a2a2a;
    --gray: #666666;
    --gray-light: #999999;
    --white: #ffffff;
    --white-soft: #f5f5f5;
    
    --accent: #00ff88;
    --accent-2: #00d4ff;
    --gradient: linear-gradient(135deg, var(--accent), var(--accent-2));
    
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
}

/* === Reset === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

input, textarea, button {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Prevent text selection highlighting */
*:not(input):not(textarea) {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Prevent image save on mobile */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

::selection {
    background: var(--accent);
    color: var(--black);
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* === Custom Cursor === */
.cursor {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease;
    mix-blend-mode: difference;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
    opacity: 0.5;
}

.cursor.hover {
    width: 60px;
    height: 60px;
    background: transparent;
    border: 1px solid var(--accent);
    mix-blend-mode: normal;
}

.cursor-follower.hover {
    width: 80px;
    height: 80px;
    opacity: 0.2;
}

/* === Noise Overlay === */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9000;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* === Navigation === */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 25px 50px;
    z-index: 1000;
    transition: all 0.5s var(--ease);
}

.nav.scrolled {
    padding: 15px 50px;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.logo-diamond {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: diamondPulse 2s ease-in-out infinite;
}

.logo-diamond svg {
    width: 28px;
    height: 28px;
    stroke: var(--accent);
    filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.5));
}

@keyframes diamondPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.nav-links {
    display: flex;
    gap: 50px;
}

.nav-link {
    position: relative;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--gray-light);
    transition: color 0.3s ease;
}

.nav-link::before {
    content: attr(data-index);
    position: absolute;
    top: -15px;
    left: 0;
    font-size: 0.6rem;
    color: var(--accent);
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--white);
}

.nav-link:hover::before {
    opacity: 1;
    transform: translateY(0);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
}

/* === Hero Section === */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 150px 50px 120px;
    position: relative;
    max-width: 1600px;
    margin: 0 auto;
}

.hero-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    width: 100%;
}

.hero-content {
    flex: 1;
    max-width: 700px;
}

.hero-label {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    color: var(--gray-light);
}

.label-line {
    width: 50px;
    height: 1px;
    background: var(--accent);
}

.label-diamond {
    display: flex;
    align-items: center;
    animation: diamondPulse 2s ease-in-out infinite;
}

.label-diamond svg {
    width: 18px;
    height: 18px;
    stroke: var(--accent);
    filter: drop-shadow(0 0 6px rgba(0, 255, 136, 0.5));
}

.hero-title {
    margin-bottom: 30px;
}

.title-line {
    display: block;
    overflow: hidden;
}

.word {
    display: inline-block;
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    margin-right: 20px;
    animation: wordReveal 1s var(--ease) forwards;
    animation-delay: calc(var(--i, 0) * 0.1s);
}

.word.outline {
    color: transparent;
    -webkit-text-stroke: 2px var(--white);
}

@keyframes wordReveal {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--gray-light);
    max-width: 450px;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    background: var(--white);
    color: var(--black);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: 50px;
    transition: all 0.4s var(--ease);
}

.btn-primary svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.btn-primary svg.arrow-icon {
    width: 16px;
    height: 16px;
}

.btn-primary:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.2);
}

.btn-primary:hover svg.arrow-icon {
    transform: translate(3px, -3px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    background: transparent;
    color: var(--white);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: 50px;
    border: 1px solid var(--gray-dark);
    transition: all 0.4s var(--ease);
}

.btn-secondary svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 255, 136, 0.1);
}

.btn-secondary:hover svg {
    transform: scale(1.1);
}

/* Typing Animation */
.typing-line {
    display: flex;
    align-items: center;
    margin-top: 10px;
    min-height: clamp(3.5rem, 10vw, 8rem);
}

.typing-text {
    display: inline-block;
    min-width: clamp(200px, 50vw, 550px);
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.typing-cursor {
    display: inline-block;
    font-weight: 300;
    color: var(--accent);
    animation: blink 1s infinite;
    margin-left: 5px;
    font-size: clamp(2rem, 8vw, 5rem);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Hero Image */
.hero-image {
    position: relative;
    width: 400px;
    min-width: 350px;
    height: 500px;
    flex-shrink: 0;
}

.image-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
    position: relative;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
    transition: all 0.5s ease;
}

.image-wrapper:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.5) 100%);
}

.image-border {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--accent);
    border-radius: 20px;
    z-index: -1;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: flex-start;
    gap: 60px;
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--gray-dark);
}

.stat {
    display: flex;
    align-items: baseline;
    gap: 15px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray-light);
    line-height: 1.4;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 50px;
    right: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--gray-light);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, var(--accent), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.5); opacity: 0.5; }
}

/* === Section Styles === */
section {
    padding: 150px 50px;
    max-width: 1600px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 80px;
}

.section-number {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--accent);
    letter-spacing: 0.1em;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* === About Section === */
.about {
    background: var(--dark);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: start;
}

.about-intro {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 30px;
}

.highlight {
    color: var(--accent);
}

.about-body {
    font-size: 1rem;
    color: var(--gray-light);
    line-height: 1.9;
    margin-bottom: 20px;
}

.about-img-wrapper {
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 30px;
}

.about-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(30%);
    transition: all 0.5s ease;
}

.about-img-wrapper:hover img {
    filter: grayscale(0%);
    transform: scale(1.03);
}

.about-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.detail {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-dark);
}

.detail-label {
    font-size: 0.85rem;
    color: var(--gray);
    letter-spacing: 0.1em;
}

.detail-value {
    font-family: var(--font-display);
    font-weight: 600;
}

.detail-value.available {
    color: var(--accent);
}

/* === Skills Section === */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 80px;
}

.skill-item {
    padding: 30px 0;
    border-bottom: 1px solid var(--gray-dark);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.skill-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-dark);
    border-radius: 10px;
    padding: 8px;
}

.skill-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent);
}

.skill-name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
}

.skill-bar {
    height: 4px;
    background: var(--gray-dark);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 15px;
}

.skill-fill {
    height: 100%;
    width: 0;
    background: var(--gradient);
    border-radius: 2px;
    transition: width 1.5s var(--ease);
}

.skill-fill.animate {
    width: var(--width);
}

.skill-level {
    font-size: 0.8rem;
    color: var(--gray);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* === Work Section === */
.work {
    background: var(--dark);
}

.work-list {
    display: flex;
    flex-direction: column;
}

.work-item {
    display: grid;
    grid-template-columns: 80px 1fr 80px;
    gap: 40px;
    align-items: center;
    padding: 50px 0;
    border-bottom: 1px solid var(--gray-dark);
    transition: all 0.4s ease;
    cursor: pointer;
}

.work-item:hover {
    padding-left: 30px;
    background: var(--dark-2);
}

.work-index {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--accent);
    letter-spacing: 0.1em;
}

.work-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.work-item:hover .work-title {
    color: var(--accent);
}

.work-desc {
    font-size: 1rem;
    color: var(--gray-light);
    margin-bottom: 15px;
}

.work-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.work-tags span {
    padding: 6px 14px;
    background: var(--gray-dark);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    border-radius: 20px;
}

.work-icon {
    width: 60px;
    height: 60px;
    justify-self: end;
    transition: transform 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.work-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--accent);
    transition: stroke 0.3s ease;
}

.work-item:hover .work-icon svg {
    stroke: var(--white);
}

.work-item:hover .work-icon {
    transform: scale(1.2) rotate(5deg);
}

/* === Contact Section === */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
}

.contact-cta {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 50px;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.contact-link {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 20px 0;
    border-bottom: 1px solid var(--gray-dark);
    transition: all 0.3s ease;
}

.contact-link:hover {
    padding-left: 20px;
    border-color: var(--accent);
}

.link-label {
    font-size: 0.75rem;
    color: var(--gray);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.link-value {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 30px;
}

.social-link {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--gray-light);
    position: relative;
}

.social-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.social-link:hover {
    color: var(--white);
}

.social-link:hover::after {
    width: 100%;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: var(--gray-light);
}

.form-group input,
.form-group textarea {
    padding: 18px 20px;
    background: var(--dark);
    border: 1px solid var(--gray-dark);
    border-radius: 10px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray);
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 40px;
    background: var(--gradient);
    color: var(--black);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s var(--ease);
}

.btn-submit svg {
    width: 20px;
    height: 20px;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(0, 255, 136, 0.3);
}

/* === Footer === */
.footer {
    padding: 50px 50px;
    border-top: 1px solid var(--gray-dark);
    background: var(--dark);
}

.footer-inner {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.footer-diamond {
    width: 22px;
    height: 22px;
    stroke: var(--accent);
    filter: drop-shadow(0 0 6px rgba(0, 255, 136, 0.4));
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--gray);
}

.footer-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.quran-verse {
    font-family: 'Amiri', 'Traditional Arabic', serif;
    font-size: 1.8rem;
    color: var(--accent);
    direction: rtl;
    letter-spacing: 0.05em;
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
}

.verse-translation {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--gray-light);
    font-style: italic;
    letter-spacing: 0.1em;
}

.footer-right {
    font-size: 0.85rem;
    color: var(--gray-light);
}

/* === Animations === */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Responsive === */
@media (max-width: 1200px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 150px 30px 100px;
        gap: 40px;
    }
    
    .hero-main {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-label {
        justify-content: center;
    }
    
    .hero-title {
        text-align: center;
    }
    
    .hero-desc {
        margin: 0 auto 40px;
        text-align: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-image {
        margin: 20px 0 0 0;
        width: 320px;
        min-width: 320px;
        height: 420px;
    }
    
    .hero-stats {
        justify-content: center;
        margin-top: 50px;
        flex-wrap: wrap;
        border-top: none;
        padding-top: 0;
    }
    
    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 992px) {
    section {
        padding: 100px 30px;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 20px 25px;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--black);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transform: translateX(-100%);
        transition: transform 0.5s var(--ease);
        z-index: 1000;
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .nav-link {
        font-size: 1.5rem;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-toggle.active span:first-child {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:last-child {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .cursor, .cursor-follower {
        display: none;
    }
    
    body {
        cursor: auto;
    }
    
    .hero {
        padding: 120px 20px 80px;
    }
    
    .hero-main {
        flex-direction: column;
        gap: 30px;
    }
    
    .hero-image {
        width: 280px;
        min-width: 280px;
        height: 350px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 25px;
        margin-top: 40px;
        width: 100%;
        border-top: none;
        padding-top: 0;
    }
    
    .stat {
        justify-content: center;
        text-align: center;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .section-header {
        margin-bottom: 50px;
    }
    
    .about-intro {
        font-size: 1.4rem;
    }
    
    .work-item {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
        padding: 35px 0;
    }
    
    .work-item:hover {
        padding-left: 0;
    }
    
    .work-title {
        font-size: 1.5rem;
    }
    
    .work-index {
        order: -1;
    }
    
    .work-icon {
        justify-self: center;
        width: 50px;
        height: 50px;
    }
    
    .typing-text {
        min-width: 280px;
    }
    
    .typing-line {
        min-height: 4rem;
    }
    
    .work-tags {
        justify-content: center;
    }
    
    .contact-cta {
        text-align: center;
    }
    
    .contact-links {
        align-items: center;
    }
    
    .contact-link {
        text-align: center;
        width: 100%;
    }
    
    .contact-link:hover {
        padding-left: 0;
    }
    
    .social-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .btn-submit {
        width: 100%;
    }
    
    .footer {
        padding: 30px 20px;
    }
    
    .footer-inner {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }
    
    .footer-left {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-center {
        order: -1;
    }
    
    .quran-verse {
        font-size: 1.5rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .hero {
        padding: 100px 15px 60px;
    }
    
    .word {
        margin-right: 10px;
    }
    
    .typing-text {
        min-width: 220px;
    }
    
    .typing-line {
        min-height: 3rem;
    }
    
    .hero-image {
        width: 240px;
        min-width: 240px;
        height: 300px;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 20px;
    }
    
    .btn-primary {
        width: 100%;
        justify-content: center;
    }
    
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    section {
        padding: 80px 15px;
    }
    
    .about-intro {
        font-size: 1.2rem;
    }
    
    .skill-name {
        font-size: 1.1rem;
    }
    
    .skill-icon {
        width: 35px;
        height: 35px;
        padding: 6px;
    }
    
    .skill-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .work-icon {
        width: 40px;
        height: 40px;
    }
    
    .work-title {
        font-size: 1.3rem;
    }
}
