/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Simple Minimal Color Palette */
    --primary-color: #3b82f6;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --dark-bg: #0f172a;
    --darker-bg: #020617;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-primary: 0 0 20px rgba(59, 130, 246, 0.2);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    cursor: auto;
}

/* ===== CUSTOM CURSOR ===== */
/* .cursor, .cursor-follower { display: none !important; } */

/* ===== LOADING SCREEN ===== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--darker-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.loading-content {
    text-align: center;
}

.loading-logo {
    font-family: 'Orbitron', monospace;
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 2rem;
    animation: pulse 2s infinite;
}

.loading-bar {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.loading-progress {
    height: 100%;
    background: var(--primary-color);
    border-radius: 2px;
    animation: loading 3s ease-in-out;
}

.loading-text {
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    color: var(--primary-color);
    letter-spacing: 0.2em;
}

/* ===== ANIMATED BACKGROUND ===== */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    top: 60%;
    right: 10%;
    animation-delay: -5s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: var(--primary-color);
    bottom: 10%;
    left: 50%;
    animation-delay: -10s;
}

.particles-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-text {
    color: var(--text-primary);
}

.logo-accent {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    text-shadow: var(--shadow-primary);
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--glass-bg);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 1;
}

.nav-icon {
    font-size: 1.2rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    margin-top: 80px;
}

/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.hero-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4rem;
}

.hero-text {
    flex: 1 1 0;
    margin-right: 2rem;
}

.hero-visual {
    flex: 1 1 0;
    margin-left: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.title-line {
    display: block;
    color: var(--text-secondary);
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
}

.title-name {
    display: block;
    color: var(--primary-color);
    text-shadow: var(--shadow-primary);
}

.title-role {
    display: block;
    color: var(--primary-color);
    font-size: 2rem;
    text-shadow: var(--shadow-primary);
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-primary);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-primary);
    box-shadow: var(--shadow-primary);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--glass-border);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: var(--shadow-primary);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.hero-avatar {
    position: relative;
}

.avatar-container {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.avatar-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: var(--primary-color);
    border-radius: 50%;
    z-index: -1;
    animation: pulse 2s infinite;
}

.avatar-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, transparent 30%, var(--primary-color) 70%);
    opacity: 0.2;
    animation: rotate 10s linear infinite;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: var(--primary-color);
    animation: scroll 2s infinite;
}

/* ===== SECTIONS ===== */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.title-prefix {
    color: var(--text-secondary);
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.title-main {
    color: var(--primary-color);
}

.title-line {
    width: 100px;
    height: 4px;
    background: var(--primary-color);
    margin: 4px auto 15px 4px;
    border-radius: 2px;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-subtitle {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.about-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-primary);
}

.stat-number {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.about-visual {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.about-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 24px 0 rgba(0,255,255,0.10), 0 1.5px 8px 0 rgba(255,110,196,0.10);
    background: rgba(40, 44, 52, 0.75);
    margin: 0 auto 1.5rem auto !important;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-primary);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-card h4 {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.about-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===== SKILLS SECTION ===== */
.skills-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.skills-category {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.category-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.skill-item {
    text-align: center;
}

.skill-circle {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
}

.skill-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.skill-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 8;
}

.skill-progress {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 314;
    stroke-dashoffset: 314;
    animation: progress 2s ease-out forwards;
}

.skill-info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.skill-name {
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.skill-percentage {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.skill-label {
    min-width: 120px;
    font-weight: 600;
    color: var(--text-primary);
}

.skill-track {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
    animation: fillBar 2s ease-out forwards;
}

.skill-value {
    min-width: 50px;
    text-align: right;
    font-weight: 700;
    color: var(--primary-color);
}

/* ===== PROJECTS SECTION ===== */
.projects-section {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    perspective: 1000px;
    height: 400px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.project-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card-back {
    transform: rotateY(180deg);
}

.card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.project-card h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.card-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.tech-tag {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.card-actions {
    margin-top: auto;
}

/* ===== CONTACT SECTION ===== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-primary);
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    min-width: 40px;
}

.contact-details h4 {
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.contact-details p {
    color: var(--text-secondary);
}

.contact-form {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--primary-color);
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
    top: -0.5rem;
    left: 0;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.form-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.form-group input:focus ~ .form-line,
.form-group textarea:focus ~ .form-line {
    width: 100%;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--darker-bg);
    border-top: 1px solid var(--glass-border);
    padding: 3rem 0 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-logo p {
    color: var(--text-secondary);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--primary-color);
    box-shadow: var(--shadow-primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes scroll {
    0% { height: 0; }
    50% { height: 40px; }
    100% { height: 0; }
}

@keyframes loading {
    0% { width: 0%; }
    100% { width: 100%; }
}

@keyframes progress {
    to { stroke-dashoffset: 0; }
}

@keyframes fillBar {
    from { width: 0%; }
    to { width: var(--width); }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .nav-toggle {
        display: flex !important;
        z-index: 2001;
    }
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100vw;
        height: calc(100vh - 80px);
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.3s ease;
        z-index: 2000;
    }
    .nav-menu.active {
        left: 0;
    }
    body.menu-open {
        overflow: hidden !important;
    }
    .about-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
        width: 100%;
        padding: 1.5rem;
        box-sizing: border-box;
    }
    .about-text, .about-visual {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        text-align: center;
    }
    .about-visual {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        width: 100%;
    }
    .about-card {
        width: 100%;
        min-width: 220px;
        max-width: 400px;
        margin: 0 auto 1.5rem auto !important;
        box-sizing: border-box;
        box-shadow: 0 4px 24px 0 rgba(0,255,255,0.10), 0 1.5px 8px 0 rgba(255,110,196,0.10);
        background: rgba(40, 44, 52, 0.75);
    }
    .avatar-container {
        width: 220px;
        height: 220px;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .about-text {
        margin-bottom: 2rem;
    }
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        margin-top: 2rem;
    }
    .stat-item {
        padding: 1.5rem 1rem;
        margin: 0 auto;
        width: 100%;
        max-width: 150px;
    }
    .stat-number {
        font-size: 2rem;
    }
    .stat-label {
        font-size: 0.8rem;
    }
    .skills-category,
    .project-card,
    .contact-form {
        margin: 0 auto;
        width: 100%;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
        justify-content: center;
    }
    .hero-text {
        margin-right: 0;
        text-align: center;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-visual {
        margin-left: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .hero-title {
        font-size: 1.5rem;
        text-align: center;
        width: 100%;
    }
    .title-line {
        text-align: center;
        margin: 0 auto 0.6rem auto;
    }
    .title-name {
        font-size: 2rem;
        text-align: center;
        margin: 0 auto 0.6rem auto;
    }
    .title-role {
        font-size: 1.2rem;
        text-align: center;
        margin: 0 auto;
    }
    .hero-description {
        font-size: 1rem;
        text-align: center;
        margin: 0 auto 3rem auto;
    }
    .hero-actions {
        flex-direction: column;
        gap: 0.7rem;
        align-items: center;
        width: 100%;
    }
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    .section-container {
        padding: 2.5rem 1rem;
    }
    .about-content {
        gap: 2rem;
        padding: 1.2rem 0.7rem;
    }
    .about-text, .about-visual {
        max-width: 100%;
        padding: 0 0.5rem;
        text-align: center;
    }
    .about-visual {
        gap: 1.5rem;
    }
    .about-card {
        margin: 0 auto 1.2rem auto !important;
        width: 100%;
        max-width: 100%;
        padding: 1.5rem 1rem;
        box-sizing: border-box;
    }
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
        margin-top: 2rem;
        width: 100%;
    }
    .stat-item {
        padding: 1rem 0.5rem;
        margin: 0 auto;
        width: 100%;
        max-width: 120px;
        text-align: center;
    }
    .stat-number {
        font-size: 1.8rem;
        margin-bottom: 0.3rem;
    }
    .stat-label {
        font-size: 0.7rem;
        line-height: 1.2;
    }
    .skills-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .about-card,
    .skills-category,
    .project-card,
    .contact-form {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0 auto 1rem auto;
    }
    .skills-category {
        padding: 1.5rem 1rem;
    }
    .project-card {
        height: 350px;
    }
    .card-front,
    .card-back {
        padding: 1.5rem 1rem;
    }
    .contact-form {
        padding: 1.5rem 1rem;
    }
    .contact-info {
        gap: 1rem;
    }
    .contact-item {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .section-container {
        padding: 1.2rem 0.5rem;
    }
    .hero-title {
        font-size: 1.1rem;
        text-align: center;
        width: 100%;
    }
    .title-line {
        text-align: center;
        margin: 0 auto 0.4rem auto;
        font-size: 1rem;
    }
    .title-name {
        font-size: 1.3rem;
        text-align: center;
        margin: 0 auto 0.4rem auto;
    }
    .title-role {
        font-size: 1rem;
        text-align: center;
        margin: 0 auto;
    }
    .hero-description {
        font-size: 0.9rem;
        text-align: center;
        margin: 0 auto 2rem auto;
    }
    .btn {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }
    .avatar-container {
        width: 100px;
        height: 100px;
    }
    .about-content {
        gap: 1rem;
        padding: 0.5rem 0.2rem;
    }
    .about-card {
        padding: 1rem 0.5rem;
        margin: 0 auto 1rem auto !important;
        width: 100%;
        max-width: 100%;
    }
    .about-text, .about-visual {
        padding: 0 0.2rem;
    }
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        margin-top: 1.5rem;
    }
    .stat-item {
        padding: 0.8rem 0.3rem;
        margin: 0 auto;
        width: 100%;
        max-width: 100px;
    }
    .stat-number {
        font-size: 1.5rem;
        margin-bottom: 0.2rem;
    }
    .stat-label {
        font-size: 0.6rem;
        line-height: 1.1;
    }
    .skills-category,
    .project-card,
    .contact-form {
        padding: 1rem 0.5rem;
        margin: 0 auto 0.8rem auto;
    }
    .card-front,
    .card-back {
        padding: 1rem 0.5rem;
    }
    .project-card {
        height: 300px;
    }
    .contact-item {
        padding: 0.8rem;
        gap: 0.5rem;
    }
    .contact-icon {
        font-size: 1.2rem;
        min-width: 30px;
    }
    .contact-details h4 {
        font-size: 1rem;
    }
    .contact-details p {
        font-size: 0.9rem;
    }
}

@media (max-width: 400px) {
    .section-container {
        padding: 0.5rem 0.2rem;
    }
    .hero-title {
        font-size: 1rem;
        text-align: center;
        width: 100%;
    }
    .title-line {
        text-align: center;
        margin: 0 auto 0.3rem auto;
        font-size: 0.9rem;
    }
    .title-name {
        font-size: 1.1rem;
        text-align: center;
        margin: 0 auto 0.3rem auto;
    }
    .title-role {
        font-size: 0.9rem;
        text-align: center;
        margin: 0 auto;
    }
    .hero-description {
        font-size: 0.8rem;
        text-align: center;
        margin: 0 auto 1.5rem auto;
    }
    .btn {
        font-size: 0.8rem;
    }
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.3rem;
    }
    .stat-item {
        padding: 0.6rem 0.2rem;
        max-width: 80px;
    }
    .stat-number {
        font-size: 1.2rem;
    }
    .stat-label {
        font-size: 0.5rem;
    }
    .about-card,
    .skills-category,
    .project-card,
    .contact-form {
        padding: 0.8rem 0.3rem;
        margin: 0 auto 0.6rem auto;
    }
    .card-front,
    .card-back {
        padding: 0.8rem 0.3rem;
    }
    .project-card {
        height: 280px;
    }
    .contact-item {
        padding: 0.6rem;
    }
    .contact-icon {
        font-size: 1rem;
        min-width: 25px;
    }
    .contact-details h4 {
        font-size: 0.9rem;
    }
    .contact-details p {
        font-size: 0.8rem;
    }
}

/* ===== UTILITY CLASSES ===== */
.hidden {
    display: none;
}

.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}