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

/* ================= ROOT VARIABLES - PROFESSIONAL DYNAMIC THEME ================= */
:root {
    /* Professional Corporate/Tech Palette */
    --bg-color: #0a192f;
    --second-bg-color: #112240;
    --text-color: #ccd6f6;
    --text-muted: #8892b0;
    --main-color: #64ffda;
    --accent-color: #007bff;
    --highlight-color: #e6f1ff;

    /* Design Tokens */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --shadow-sm: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
    --shadow-lg: 0 20px 30px -15px rgba(2, 12, 27, 0.7);

    /* Transitions */
    --transition-fast: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
    --transition-smooth: all 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.light-mode {
    --bg-color: #ffffff;
    --second-bg-color: #f0f4f8;
    --text-color: #1d3557;
    --text-muted: #457b9d;
    --main-color: #0077b6;
    --accent-color: #023e8a;
    --highlight-color: #0a192f;
    --shadow-sm: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 30px -15px rgba(0, 0, 0, 0.1);
}

/* ================= GLOBAL STYLES ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    transition: var(--transition-smooth);
    line-height: 1.6;
}

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

section {
    min-height: 100vh;
    padding: 10rem 9% 5rem;
    position: relative;
}

span {
    color: var(--main-color);
}

/* ================= HEADER - GLASSMORPHISM ================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

.light-mode .header {
    background: rgba(255, 255, 255, 0.85);
}

.header.sticky {
    padding: 1.5rem 9%;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-size: 2.5rem;
    color: var(--main-color);
    font-weight: 700;
    cursor: pointer;
    letter-spacing: -0.5px;
}

.navbar {
    display: flex;
    align-items: center;
}

.navbar a {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-left: 3.5rem;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
}

.navbar a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--main-color);
    transition: var(--transition-fast);
}

.navbar a:hover::after,
.navbar a.active::after {
    width: 100%;
}

.theme-toggle {
    margin-left: 3rem;
    cursor: pointer;
    font-size: 2.2rem;
    color: var(--text-color);
    transition: var(--transition-fast);
}

.theme-toggle:hover {
    color: var(--main-color);
    transform: rotate(15deg);
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--text-color);
    display: none;
    cursor: pointer;
}

/* ================= HOME SECTION ================= */
.home {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5rem;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

/* Animated Background Shapes */
.home::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(100, 255, 218, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
    z-index: 0;
}

.home::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -150px;
    left: -150px;
    animation: float 15s ease-in-out infinite reverse;
    z-index: 0;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.home-content {
    flex: 1;
    min-width: 300px;
    z-index: 1;
    position: relative;
}

.home-content h3 {
    font-size: 2rem;
    font-weight: 500;
    color: var(--main-color);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    font-family: 'Inter', monospace;
    opacity: 0;
    animation: slideInLeft 0.8s ease forwards;
}

.home-content h1 {
    font-size: 6.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--highlight-color) 0%, var(--main-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    animation: slideInLeft 0.8s ease 0.2s forwards;
}

.home-content h3:nth-of-type(2) {
    font-size: 3.2rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 2rem;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0;
    opacity: 0;
    animation: slideInLeft 0.8s ease 0.4s forwards;
}

.home-content p {
    font-size: 1.6rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    line-height: 1.8;
    max-width: 550px;
    opacity: 0;
    animation: slideInLeft 0.8s ease 0.6s forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.social-media {
    display: flex;
    margin-bottom: 2.5rem;
    gap: 1.5rem;
    opacity: 0;
    animation: slideInLeft 0.8s ease 0.8s forwards;
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
    background: var(--second-bg-color);
    border: 2px solid transparent;
    border-radius: 50%;
    font-size: 2.2rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.social-media a::before {
    content: '';
    position: absolute;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--main-color), var(--accent-color));
    left: 0;
    top: 0;
    transition: var(--transition-fast);
    z-index: -1;
}

.social-media a:hover::before {
    width: 100%;
}

.social-media a:hover {
    color: var(--bg-color);
    border-color: var(--main-color);
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 10px 20px rgba(100, 255, 218, 0.3);
}

.btn {
    display: inline-block;
    padding: 1.4rem 3.2rem;
    background: linear-gradient(135deg, var(--main-color), var(--accent-color));
    border: none;
    border-radius: var(--border-radius-sm);
    color: var(--bg-color);
    font-size: 1.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.3);
    opacity: 0;
    animation: slideInLeft 0.8s ease 1s forwards;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color), var(--main-color));
    transition: var(--transition-fast);
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn:hover {
    box-shadow: 0 8px 25px rgba(100, 255, 218, 0.5);
    transform: translateY(-3px);
}

.home-img {
    flex: 0 0 auto;
    z-index: 1;
    position: relative;
    opacity: 0;
    animation: slideInRight 1s ease 0.5s forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.img-box {
    position: relative;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--main-color), var(--accent-color));
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px rgba(100, 255, 218, 0.4);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 40px rgba(100, 255, 218, 0.4);
    }

    50% {
        box-shadow: 0 0 60px rgba(100, 255, 218, 0.6);
    }
}

.img-box::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--main-color), var(--accent-color));
    opacity: 0.3;
    filter: blur(20px);
    z-index: -1;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.img-box::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: var(--main-color);
    border-radius: 50%;
    opacity: 0.1;
    z-index: -1;
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: var(--transition-smooth);
    background: var(--second-bg-color);
}

.img-box:hover img {
    transform: scale(1.05);
}

/* ================= ABOUT SECTION ================= */
.about {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5rem;
    flex-wrap: wrap;
    background: var(--second-bg-color);
}

.about-visual {
    flex: 0 0 auto;
    position: relative;
    width: 400px;
    height: 400px;
    border-radius: var(--border-radius-lg);
    background: var(--bg-color);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

#aboutCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

.code-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Courier New', monospace;
    font-size: 1.4rem;
    color: var(--main-color);
    text-align: left;
    pointer-events: none;
    z-index: 10;
}

.code-line {
    opacity: 0;
    animation: fadeInCode 0.5s ease forwards;
    margin: 0.5rem 0;
    text-shadow: 0 0 10px rgba(100, 255, 218, 0.5);
}

@keyframes fadeInCode {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.about-content {
    flex: 1;
    min-width: 300px;
}

.heading {
    font-size: 4rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.heading span {
    color: var(--main-color);
}

.about-content h2 {
    text-align: left;
    margin-bottom: 2rem;
}

.about-content h3 {
    font-size: 2rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 2rem;
}

.about-content p {
    font-size: 1.6rem;
    color: var(--text-muted);
    margin-bottom: 4rem;
    line-height: 1.8;
}

/* ================= SKILLS SECTION ================= */
.skills {
    background: var(--bg-color);
}

.skills h2.heading {
    text-align: center;
    display: block;
    width: 100%;
    margin-bottom: 5rem;
}

.skills .title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

/* New Skills Grid System */
.skills-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.skill-category h3 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: var(--highlight-color);
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.skill-category h3::after {
    content: '';
    display: block;
    width: 60%;
    height: 3px;
    background: var(--main-color);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

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

/* Interactive Skill Card */
/* Interactive Skill Card */
.skill-card {
    /* Force Dark Theme Text Colors inside the card */
    --text-color: #ccd6f6;
    --text-muted: #8892b0;
    --highlight-color: #e6f1ff;
    --main-color: #64ffda;

    background: rgba(17, 34, 64, 0.7);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--main-color);
    box-shadow: 0 10px 30px -15px rgba(100, 255, 218, 0.2);
    background: rgba(17, 34, 64, 0.9);
}

/* Card Header Layout */
.skill-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.skill-header i {
    font-size: 3rem;
    color: var(--main-color);
    transition: transform 0.3s ease;
}

.skill-card:hover .skill-header i {
    transform: scale(1.1);
}

.skill-header h4 {
    font-size: 1.6rem;
    color: var(--text-color);
    margin-bottom: 0.2rem;
}

.skill-header .level {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 500;
}

.toggle-icon {
    margin-left: auto;
    font-size: 2rem !important;
    color: var(--text-color);
    transition: transform 0.3s ease;
}

/* Active State (Expanded) */
.skill-card.active {
    border-color: var(--main-color);
    background: rgba(17, 34, 64, 1);
    box-shadow: 0 10px 30px -10px rgba(100, 255, 218, 0.3);
}

.skill-card.active .toggle-icon {
    transform: rotate(180deg);
    color: var(--main-color);
}

/* Hidden Details Section */
.skill-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.3s ease, margin-top 0.3s ease;
    opacity: 0;
}

.skill-card.active .skill-details {
    max-height: 200px;
    opacity: 1;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(100, 255, 218, 0.1);
    padding-top: 1.5rem;
}

.skill-details p {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.related-projects {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.related-projects span {
    font-size: 1.1rem;
    color: var(--highlight-color);
    background: rgba(100, 255, 218, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    border: 1px solid rgba(100, 255, 218, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* ================= PORTFOLIO SECTION ================= */
.portfolio {
    background: var(--second-bg-color);
}

.portfolio h2.heading {
    text-align: center;
    display: block;
    width: 100%;
    margin-bottom: 5rem;
}

.portfolio-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.portfolio-box {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--bg-color);
    transition: var(--transition-fast);
}

.portfolio-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.portfolio-box img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.portfolio-box:hover img {
    transform: scale(1.05);
}

.portfolio-layer {
    /* Force Dark Theme Colors for better visibility */
    --bg-color: #0a192f;
    --text-color: #ccd6f6;
    --text-muted: #8892b0;
    --main-color: #64ffda;
    --highlight-color: #e6f1ff;

    padding: 2.5rem;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Stronger gradient to ensure text readability on light images */
    background: linear-gradient(to top, rgba(10, 25, 47, 1) 0%, rgba(10, 25, 47, 0.95) 40%, rgba(10, 25, 47, 0.7) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    transform: translateY(100%);
    transition: var(--transition-smooth);
}

.portfolio-box:hover .portfolio-layer {
    transform: translateY(0);
}

.portfolio-layer h4 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--highlight-color);
}

.portfolio-layer p {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.portfolio-layer a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4.5rem;
    height: 4.5rem;
    background: transparent;
    border: 1px solid var(--text-muted);
    border-radius: 50%;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.portfolio-layer a:hover {
    border-color: var(--main-color);
    color: var(--main-color);
}

.portfolio-layer a i {
    font-size: 2rem;
}

/* Custom Project Badges & Tech Stack */
.portfolio-layer .badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--main-color);
    color: var(--bg-color);
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.portfolio-layer .tech-stack {
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.portfolio-layer .tech-stack span {
    font-size: 1.1rem;
    color: var(--highlight-color);
    background: rgba(10, 25, 47, 0.8);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    border: 1px solid var(--main-color);
}

/* ================= CONTACT SECTION ================= */
.contact {
    background: var(--bg-color);
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact h2.heading {
    margin-bottom: 1rem;
}

.contact-subtitle {
    font-size: 1.6rem;
    color: var(--text-muted);
    margin-bottom: 4rem;
}

.contact-wrapper {
    background: rgba(17, 34, 64, 0.7);
    padding: 4rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(100, 255, 218, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.form-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.input-group {
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
}

.form-row .input-group {
    margin-bottom: 0;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--text-muted);
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    border-radius: 4px 4px 0 0;
}

.input-group textarea {
    resize: none;
    height: 150px;
}

.input-group label {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Floating Label Logic */
.input-group input:focus,
.input-group textarea:focus,
.input-group input:not(:placeholder-shown),
.input-group textarea:not(:placeholder-shown) {
    border-bottom-color: var(--main-color);
    background: rgba(100, 255, 218, 0.05);
}

.input-group input:focus~label,
.input-group textarea:focus~label,
.input-group input:not(:placeholder-shown)~label,
.input-group textarea:not(:placeholder-shown)~label {
    top: -1rem;
    left: 0;
    font-size: 1.2rem;
    color: var(--main-color);
    font-weight: 600;
}


/* Submit Button with built-in loader/success */
.submit-btn {
    width: 100%;
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    transition: var(--transition-smooth);
}

.submit-btn.loading .btn-text,
.submit-btn.loading .send-icon {
    display: none;
}

.submit-btn.loading .loader {
    display: block;
}

.submit-btn.success {
    background: #28a745;
    /* Success Green */
    border-color: #28a745;
}

.submit-btn.success .btn-text,
.submit-btn.success .send-icon,
.submit-btn.success .loader {
    display: none;
}

.submit-btn.success .success-icon {
    display: block;
    font-size: 2.5rem;
    animation: scaleIn 0.3s ease;
}

.loader {
    display: none;
    width: 25px;
    height: 25px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

.success-icon {
    display: none;
    color: #fff;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

.message-status {
    margin-top: 1.5rem;
    font-size: 1.4rem;
    min-height: 20px;
    font-weight: 500;
    transition: var(--transition-fast);
}

.message-status.success {
    color: #64ffda;
}

.message-status.error {
    color: #ff6b6b;
}

.credibility-note {
    margin-top: 2.5rem;
    font-size: 1.3rem;
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* ================= FOOTER ================= */
.footer {
    padding: 4rem 9% 2rem;
    background: var(--second-bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-text p {
    font-size: 1.4rem;
    color: var(--text-muted);
    font-family: 'Inter', monospace;
}

.footer-iconTop a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background: var(--main-color);
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);
    color: var(--bg-color);
}

.footer-iconTop a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.3);
}

.footer-iconTop a i {
    font-size: 2.4rem;
}

/* ================= ANIMATION CLASSES ================= */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-smooth);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================= RESPONSIVE BREAKPOINTS ================= */
@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }

    .home-content h1 {
        font-size: 5rem;
    }
}

@media (max-width: 991px) {
    .header {
        padding: 2rem 5%;
    }

    section {
        padding: 10rem 5% 5rem;
    }

    .home {
        flex-direction: column-reverse;
        text-align: center;
    }

    .home-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .social-media {
        justify-content: center;
    }

    .about {
        flex-direction: column;
    }

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

    .about-content h2 {
        text-align: center;
    }
}

@media (max-width: 768px) {
    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 2rem 5%;
        background: var(--bg-color);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        display: none;
        flex-direction: column;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    .navbar.active {
        display: flex;
    }

    .navbar a {
        margin: 1.5rem 0;
        font-size: 1.6rem;
        display: block;
    }

    .theme-toggle {
        margin-left: 0;
        margin-top: 1.5rem;
    }

    .home-content h1 {
        font-size: 4rem;
    }

    .home-content h3:nth-of-type(2) {
        font-size: 2.5rem;
    }

    .img-box {
        width: 250px;
        height: 250px;
    }

    .portfolio-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 450px) {
    html {
        font-size: 50%;
    }

    .home-content h1 {
        font-size: 3.5rem;
    }

    .img-box {
        width: 200px;
        height: 200px;
    }

    .input-box {
        flex-direction: column;
    }

    .input-box input {
        width: 100%;
    }
}