/* 
  Modern Portfolio Design System
  Fonts: Outfit (Headings), Inter (Body)
*/

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

:root {
    /* Shared accents (both themes) */
    --accent-primary: #6366f1;
    --accent-secondary: #06b6d4;

    /* Dark theme (default) */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --header-bg: rgba(15, 23, 42, 0.8);
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --surface-overlay: rgba(255, 255, 255, 0.05);
    --surface-overlay-hover: rgba(255, 255, 255, 0.1);
    --badge-bg: rgba(99, 102, 241, 0.1);
    --badge-border: rgba(99, 102, 241, 0.2);
    --input-bg: rgba(255, 255, 255, 0.05);
    --footer-divider: rgba(255, 255, 255, 0.05);
    --btn-shadow: rgba(99, 102, 241, 0.5);
    --btn-shadow-hover: rgba(99, 102, 241, 0.6);
    --blob-opacity: 0.2;
    --skill-glow: rgba(99, 102, 241, 0.3);
    --gradient-surface: linear-gradient(to bottom right, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
    color-scheme: dark;

    --glass-blur: blur(12px);
    --gradient-primary: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));

    /* Spacing & Sizing */
    --section-padding: 8rem 2rem;
    --container-width: 1400px;
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light theme (checkbox toggled) */
body:has(#theme-toggle:checked) {
    --bg-primary: #f8fafc;
    --bg-secondary: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #52525b;
    --header-bg: rgba(248, 250, 252, 0.9);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(15, 23, 42, 0.1);
    --surface-overlay: rgba(15, 23, 42, 0.04);
    --surface-overlay-hover: rgba(15, 23, 42, 0.08);
    --badge-bg: rgba(99, 102, 241, 0.12);
    --badge-border: rgba(99, 102, 241, 0.28);
    --input-bg: rgba(15, 23, 42, 0.04);
    --footer-divider: rgba(15, 23, 42, 0.08);
    --btn-shadow: rgba(99, 102, 241, 0.35);
    --btn-shadow-hover: rgba(99, 102, 241, 0.45);
    --blob-opacity: 0.12;
    --skill-glow: rgba(99, 102, 241, 0.2);
    --gradient-surface: linear-gradient(to bottom right, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0));
    color-scheme: light;
}

/* --- Base Reset --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Screen Reader & Skip Link Utilities --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 1.5rem;
    background: var(--gradient-primary);
    color: #fff;
    padding: 0.8rem 1.5rem;
    z-index: 9999;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    font-weight: 600;
    transition: top 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px -10px var(--btn-shadow);
}

.skip-link:focus-visible {
    top: 0;
    outline: 2px solid var(--text-primary);
    outline-offset: 2px;
}

/* --- Focus Indicator Styles --- */
a:focus-visible,
button:focus-visible,
.theme-toggle:focus-visible,
.btn:focus-visible,
.project-links a:focus-visible,
.social-links a:focus-visible {
    outline: 3px solid var(--accent-primary);
    outline-offset: 4px;
}

/* Custom theme toggle focus rule for keyboard users */
body:has(.theme-toggle-input:focus-visible) .theme-toggle {
    outline: 3px solid var(--accent-primary);
    outline-offset: 4px;
}

.form-group input:focus-visible,
.form-group textarea:focus-visible {
    outline: 3px solid var(--accent-primary);
    outline-offset: 1px;
    border-color: transparent;
}

/* --- Header & Navigation --- */
header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    transition: background var(--transition-smooth), border-color var(--transition-smooth);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

header nav .nav-links {
    margin-left: auto;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo-img {
    height: 40px;
    width: 40px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-right: 0.8rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    white-space: nowrap;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-fast);
}

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

/* Checkbox Hack Logic */
#nav-toggle-checkbox {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.nav-toggle-label .close-icon {
    display: none;
}

/* Theme toggle (HTML + CSS only) */
.theme-toggle-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-shrink: 0;
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-full);
    color: var(--text-primary);
    cursor: pointer;
    background: var(--surface-overlay);
    border: 1px solid var(--glass-border);
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--surface-overlay-hover);
    color: var(--accent-primary);
}

.theme-toggle i {
    font-size: 1.1rem;
    line-height: 1;
}

/* Dark mode (default): moon only — beat Font Awesome .fas { display: inline-block } */
.theme-toggle i.theme-icon-light {
    display: none;
}

.theme-toggle i.theme-icon-dark {
    display: inline-block;
}

/* Light mode: sun only */
body:has(#theme-toggle:checked) .theme-toggle i.theme-icon-light {
    display: inline-block;
}

body:has(#theme-toggle:checked) .theme-toggle i.theme-icon-dark {
    display: none;
}

/* Responsive Navigation Logic (CSS ONLY) */
@media (max-width: 768px) {
    .nav-toggle-label {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        max-height: calc(100vh - 60px);
        background: var(--bg-primary);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 2rem 0;
        transition: 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.1rem;
        display: block;
        padding: 1rem;
        color: var(--text-secondary);
    }

    .nav-links a:hover {
        background: var(--surface-overlay);
        color: var(--text-primary);
    }

    .nav-links a::after {
        display: none;
    }

    header nav:has(#nav-toggle-checkbox:checked) .nav-links {
        left: 0;
    }

    #nav-toggle-checkbox:checked ~ .nav-toggle-label .menu-icon {
        display: none;
    }

    #nav-toggle-checkbox:checked ~ .nav-toggle-label .close-icon {
        display: block;
    }
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    font-family: 'Inter', sans-serif;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 10px 20px -10px var(--btn-shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -10px var(--btn-shadow-hover);
}

.btn-secondary {
    background: var(--surface-overlay);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: var(--surface-overlay-hover);
    transform: translateY(-3px);
}

.w-full { width: 100%; }

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--badge-bg);
    color: var(--accent-primary);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid var(--badge-border);
}

.hero-text h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.blob-gradient {
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--gradient-primary);
    filter: blur(80px);
    opacity: var(--blob-opacity);
    border-radius: 50%;
    animation: pulse 10s infinite alternate;
}

.profile-frame {
    width:100%;
    max-width: 400px;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-primary);
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;

}

/* --- Section Commons --- */
.section {
    padding: var(--section-padding);
}

.section-subtitle {
    display: block;
    color: var(--accent-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Grids --- */
.grid-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.grid-three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* --- About Section --- */
.about-image{
   display: flex;
    justify-content: center;
    align-items: center;
}
.about-image .image-card {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1/1;
    padding: 0;
    overflow: hidden;
   
    
}

.about-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
  }

.stats {
    margin-top: 3rem;
}

.stat-item h4 {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Skills Section --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
}

.skill-card {
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skill-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 5px var(--skill-glow));
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
}

.skill-card h4 {
    font-size: 1.1rem;
}

/* --- Projects Section --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
}

.project-card {
    overflow: hidden;
    padding: 0;
}

.project-img-wrapper {
    height: 250px;
    overflow: hidden;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--glass-border);
}

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

.project-card:hover .project-img {
    transform: scale(1.1);
}

.project-info {
    padding: 2rem;
}

.project-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.project-links a {
    color: var(--text-secondary);
}

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

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-item {
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.service-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.service-item h4 {
    margin-bottom: 0.5rem;
}

.service-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* --- Contact Section --- */
.contact-card {
    padding: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.contact-badge {
    align-self: flex-start;
    margin-bottom: 0;
}

.contact-heading {
    font-size: 1.75rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

.contact-intro {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 420px;
}

.contact-highlights {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--surface-overlay);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.contact-highlight-item:hover {
    border-color: var(--accent-primary);
    background: var(--surface-overlay-hover);
}

.contact-highlight-item > i {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--accent-primary);
    background: var(--badge-bg);
    border-radius: var(--radius-sm);
}

.contact-highlight-item strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}

.contact-highlight-item span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--glass-border);
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.detail-item a {
    color: var(--text-secondary);
}

.detail-item a:hover {
    color: var(--accent-primary);
}

.detail-item i {
    flex-shrink: 0;
    width: 1.25rem;
    text-align: center;
    color: var(--accent-primary);
}

.contact-social {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-social-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

.contact-social .social-links {
    gap: 1rem;
}

.contact-social .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius-full);
    background: var(--surface-overlay);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 1.15rem;
    transition: var(--transition-fast);
}

.contact-social .social-links a:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-3px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    outline: none;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--accent-primary);
}

/* --- Footer --- */
.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--glass-border);
    background: var(--bg-secondary);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.social-links {
    display: flex;
    gap: 2rem;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.social-links a:hover {
    color: var(--text-primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--footer-divider);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Utility Classes --- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: background var(--transition-smooth), border-color var(--transition-smooth);
}

/* --- Scrollbar Styling --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
    .hero{
        height: auto;
    }
    .hero-text h1 { font-size: 3.5rem; }
    .grid-two { gap: 2rem; }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 3rem 1.5rem;
    }

    .hero {
        height: auto;
        min-height: 70vh;
        
        padding-top: 6rem;
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .hero-text p {
        margin: 0 auto 2rem;
        font-size: 1rem;
    }

    .hero-btns {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-visual {
        max-width: 300px;
        margin: 0 auto;
    }

    .profile-frame {
        max-width: 300px;
        height: 350px;
    }

    .blob-gradient {
        width: 250px;
        height: 250px;
    }

    .grid-two {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        order: 2;
    }

    .about-content {
        order: 1;
        text-align: center;
    }

    .about-content .stats {
        justify-items: center;
    }

    .grid-three {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 1.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding: 1.5rem;
        grid-template-columns: 1fr !important;
    }

    .contact-info {
        gap: 1.5rem;
    }

    .contact-form {
        gap: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .nav-links a {
        font-size: 1.3rem;
    }

    .service-img {
        height: 150px;
    }
}

@media (max-width: 600px) {
    :root {
        --section-padding: 2.5rem 1rem;
        --radius-lg: 1rem;
    }

    html {
        font-size: 14px;
    }

    header nav {
        padding: 0.5rem 0;
    }

    .logo-img {
        height: 35px;
        width: 35px;
        margin-right: 0.5rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .hero {
        padding-top: 5rem;
    }

    .hero-text h1 {
        font-size: 1.8rem;
        margin-bottom: 0.75rem;
    }

    .hero-text p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .hero-btns {
        gap: 1rem;
        flex-direction: column;
        width: 100%;
    }

    .btn {
        display: block;
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
    }

    .badge {
        padding: 0.3rem 0.8rem;
        font-size: 0.75rem;
        margin-bottom: 1rem;
    }

    .profile-frame {
        max-width: 100%;
        width: 100%;
        height: 420px;
    }

    .hero-visual {
        max-width: 100%;
        width: 100%;
    }

    .blob-gradient {
        width: 200px;
        height: 200px;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .section-subtitle {
        font-size: 0.7rem;
        letter-spacing: 1px;
        margin-bottom: 0.25rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-header p {
        font-size: 0.9rem;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1rem;
    }

    .skill-card {
        padding: 1.5rem 1rem;
    }

    .skill-img {
        width: 50px;
        height: 50px;
        margin-bottom: 0.75rem;
    }

    .skill-card h4 {
        font-size: 0.9rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-img-wrapper {
        height: 200px;
    }

    .project-info {
        padding: 1.5rem;
    }

    .project-info h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .project-info p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .project-links {
        gap: 1rem;
        margin-top: 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-item {
        padding: 1.5rem;
    }

    .service-img {
        height: 150px;
        margin-bottom: 1rem;
    }

    .service-item h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .contact-card {
        padding: 1rem;
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .contact-info {
        gap: 1rem;
    }

    .contact-heading {
        font-size: 1.4rem;
    }

    .contact-intro {
        font-size: 0.9rem;
        max-width: 100%;
    }

    .contact-highlights {
        gap: 0.75rem;
    }

    .contact-highlight-item {
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }

    .contact-highlight-item > i {
        width: 2rem;
        height: 2rem;
        font-size: 0.9rem;
    }

    .contact-detail {
        font-size: 0.85rem;
    }

    .contact-form {
        gap: 1rem;
    }

    .form-group input, .form-group textarea {
        padding: 0.8rem;
        font-size: 1rem;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 2rem;
        gap: 1.5rem;
    }

    .social-links {
        gap: 1.5rem;
    }

    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-bottom {
        padding-top: 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 2rem 0.75rem;
    }

    html {
        font-size: 13px;
    }

    .container {
        padding: 0 0.75rem;
    }

    .hero-text h1 {
        font-size: 1.5rem;
        line-height: 1.2;
    }

    .hero-text p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .profile-frame {
        max-width: 100%;
        width: 300px;
        height: 380px;
    }

    .blob-gradient {
        width: 150px;
        height: 150px;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .btn {
        display: block;
        width: 50%;
        
    }

    .stat-item h4 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .grid-three {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-card {
        padding: 0.75rem;
    }

    .contact-heading {
        font-size: 1.2rem;
    }

    .form-group input, .form-group textarea {
        padding: 0.7rem;
    }
}
