/* ================================
   Modern Portfolio Stylesheet
   Neutral Tones with Animated Background
   ================================ */

/* ================================
   CSS Variables & Reset
   ================================ */
:root {
    /* Neutral Color Palette */
    --color-primary: #b9b297;
    --color-primary-dark: #9a9478;
    --color-primary-light: #ccc8b3;
    --color-secondary: #a8a486;
    --color-accent: #d4d0bb;
    
    --color-bg-primary: #f7f6f2;
    --color-bg-secondary: #FFFFFF;
    --color-bg-tertiary: #efeee8;
    --color-bg-overlay: rgba(185, 178, 151, 0.9);
    
    --color-text-primary: #2C2825;
    --color-text-secondary: #5C5854;
    --color-text-light: #8B8682;
    
    --color-border: #d9d6c9;
    --color-shadow: rgba(44, 40, 37, 0.1);
    --color-shadow-dark: rgba(44, 40, 37, 0.2);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Typography */
    --font-primary: 'Playfair Display', serif;
    --font-heading: 'Playfair Display', serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

body.is-preload * {
    animation: none !important;
    transition: none !important;
}

/* ================================
   Swirly Animated Background
   ================================ */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(135deg, #F5F3F0 0%, #EAE6E1 50%, #E0DCD7 100%);
}

.swirl {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.swirl-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--color-primary-light), transparent);
    top: -100px;
    left: -100px;
    animation: float1 20s infinite;
}

.swirl-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--color-secondary), transparent);
    top: 50%;
    right: -100px;
    animation: float2 25s infinite;
}

.swirl-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--color-accent), transparent);
    bottom: -100px;
    left: 30%;
    animation: float3 18s infinite;
}

.swirl-4 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--color-primary), transparent);
    top: 20%;
    left: 50%;
    animation: float4 22s infinite;
}

.swirl-5 {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, var(--color-secondary), transparent);
    bottom: 20%;
    right: 20%;
    animation: float5 30s infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(100px, 100px) rotate(90deg); }
    50% { transform: translate(200px, 0) rotate(180deg); }
    75% { transform: translate(100px, -100px) rotate(270deg); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-150px, 100px) rotate(120deg); }
    66% { transform: translate(-100px, -100px) rotate(240deg); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(150px, -150px) scale(1.2); }
}

@keyframes float4 {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    25% { transform: translate(-100px, 100px) rotate(-90deg) scale(0.8); }
    50% { transform: translate(-200px, 0) rotate(-180deg) scale(1.1); }
    75% { transform: translate(-100px, -100px) rotate(-270deg) scale(0.9); }
}

@keyframes float5 {
    0%, 100% { transform: translate(0, 0); }
    20% { transform: translate(80px, -80px); }
    40% { transform: translate(-80px, -120px); }
    60% { transform: translate(-120px, 80px); }
    80% { transform: translate(120px, 120px); }
}

/* ================================
   Navigation
   ================================ */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--color-bg-secondary);
    box-shadow: 0 2px 20px var(--color-shadow);
    z-index: 1000;
    transition: var(--transition-medium);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    font-family: 'Gwendolyn', cursive;
    animation: subtleBounce 2s ease-in-out infinite;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #6f6b5b;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition-fast);
    position: relative;
    font-family: 'Gwendolyn', cursive;
    font-size: 1.8rem;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #6f6b5b;
    transition: var(--transition-fast);
}

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

.nav-menu a:hover {
    color: var(--color-primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--color-primary);
    transition: var(--transition-fast);
}

/* ================================
   Hero Section
   ================================ */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-md);
    position: relative;
    background-image: url('../images/portfolio/Image.png');
    background-size: cover;
    background-position: 55% center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(245, 243, 240, 0.3);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease;
    text-align: center;
}

.hero-title {
    font-size: 4.5rem;
    font-family: var(--font-heading);
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-primary);
    text-shadow: 
        2px 2px 4px rgba(255, 255, 255, 0.8),
        -1px -1px 2px rgba(44, 40, 37, 0.3),
        0 4px 8px rgba(44, 40, 37, 0.2);
}

.highlight {
    color: #948e79;
    position: relative;
    display: inline-block;
    font-family: 'Gwendolyn', cursive;
    font-weight: 700;
    text-shadow: 
        2px 2px 4px rgba(255, 255, 255, 0.9),
        -1px -1px 2px rgba(44, 40, 37, 0.4),
        0 4px 10px rgba(148, 142, 121, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
    text-shadow: 
        1px 1px 3px rgba(255, 255, 255, 0.8),
        -1px -1px 2px rgba(44, 40, 37, 0.2),
        0 2px 6px rgba(44, 40, 37, 0.15);
}

.hero-description {
    font-size: 1.25rem;
    color: #6f6b5b;
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
    text-shadow: 
        1px 1px 3px rgba(255, 255, 255, 0.8),
        -1px -1px 2px rgba(44, 40, 37, 0.2),
        0 2px 6px rgba(44, 40, 37, 0.15);
}

.hero-description p {
    margin-bottom: 0;
}

.hello-accent {
    color: #6f6b5b;
}

.welcome-accent {
    color: #948e79;
    font-family: 'Gwendolyn', cursive;
    font-weight: 700;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator span {
    display: block;
    width: 20px;
    height: 30px;
    border: 2px solid var(--color-primary);
    border-radius: 15px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    width: 4px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 2px;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(15px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================
   Buttons
   ================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.65rem 2rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-medium);
    box-shadow: 
        6px 6px 12px rgba(44, 40, 37, 0.15),
        -6px -6px 12px rgba(255, 255, 255, 0.7);
}

.btn-primary {
    background: rgba(185, 178, 151, 0.85);
    color: white;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 
        8px 8px 16px rgba(44, 40, 37, 0.2),
        -8px -8px 16px rgba(255, 255, 255, 0.8);
}

.btn-primary:active {
    background: var(--color-primary-light);
    transform: translateY(0);
    box-shadow: 
        inset 4px 4px 8px rgba(44, 40, 37, 0.15),
        inset -4px -4px 8px rgba(255, 255, 255, 0.5);
}

.btn-secondary {
    background: rgba(185, 178, 151, 0.85);
    color: white;
}

.btn-secondary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 
        8px 8px 16px rgba(44, 40, 37, 0.2),
        -8px -8px 16px rgba(255, 255, 255, 0.8);
}

.btn-secondary:active {
    background: var(--color-primary-light);
    transform: translateY(0);
    box-shadow: 
        inset 4px 4px 8px rgba(44, 40, 37, 0.15),
        inset -4px -4px 8px rgba(255, 255, 255, 0.5);
}

.script-word {
    font-family: 'Gwendolyn', cursive;
    font-weight: 700;
    font-size: 1.6em;
    line-height: 1;
    color: #6f6b5b;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-bg-secondary);
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.btn-icon:hover {
    background: var(--color-primary);
    color: white;
    transform: scale(1.1);
}

/* ================================
   Common Section Styles
   ================================ */
section {
    padding: var(--spacing-xl) var(--spacing-md);
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-family: 'Gwendolyn', cursive;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-sm);
    color: #6f6b5b;
    animation: subtleBounce 2s ease-in-out infinite;
}

.title-script {
    font-family: 'Gwendolyn', cursive;
    font-weight: 700;
    font-size: 3rem;
}

.section-subtitle {
    text-align: center;
    color: #a7a088;
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
}

/* ================================
   Floating Spheres Background Effect
   ================================ */
.floating-spheres {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
}

.sphere-1 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(185, 178, 151, 0.6), rgba(185, 178, 151, 0.1));
    top: 10%;
    left: 5%;
    animation: floatSphere1 25s ease-in-out infinite;
}

.sphere-2 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(111, 107, 91, 0.5), rgba(111, 107, 91, 0.1));
    top: 60%;
    right: 10%;
    animation: floatSphere2 30s ease-in-out infinite;
}

.sphere-3 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(167, 160, 136, 0.6), rgba(167, 160, 136, 0.1));
    bottom: 15%;
    left: 15%;
    animation: floatSphere3 28s ease-in-out infinite;
}

.sphere-4 {
    width: 130px;
    height: 130px;
    background: radial-gradient(circle, rgba(195, 186, 163, 0.5), rgba(195, 186, 163, 0.1));
    top: 40%;
    left: 45%;
    animation: floatSphere4 22s ease-in-out infinite;
}

.sphere-5 {
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(185, 178, 151, 0.4), rgba(185, 178, 151, 0.1));
    bottom: 30%;
    right: 20%;
    animation: floatSphere5 26s ease-in-out infinite;
}

@keyframes floatSphere1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.1); }
    50% { transform: translate(-20px, -80px) scale(0.9); }
    75% { transform: translate(40px, -40px) scale(1.05); }
}

@keyframes floatSphere2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-40px, 50px) scale(1.15); }
    66% { transform: translate(-80px, -30px) scale(0.85); }
}

@keyframes floatSphere3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, 30px) scale(0.9); }
    50% { transform: translate(20px, -50px) scale(1.1); }
    75% { transform: translate(-30px, 20px) scale(1.05); }
}

@keyframes floatSphere4 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-60px, 60px) scale(1.2); }
}

@keyframes floatSphere5 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    20% { transform: translate(40px, -30px) scale(1.1); }
    40% { transform: translate(-30px, -60px) scale(0.9); }
    60% { transform: translate(50px, -40px) scale(1.05); }
    80% { transform: translate(-20px, 30px) scale(0.95); }
}

/* ================================
   Portfolio Section
   ================================ */
.portfolio-section {
    background: var(--color-bg-secondary);
    position: relative;
    overflow: hidden;
}

.portfolio-section .container {
    position: relative;
    z-index: 1;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-md);
}

.portfolio-card {
    background: var(--color-bg-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-medium);
    box-shadow: 0 5px 20px var(--color-shadow);
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--color-shadow-dark);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

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

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg-overlay);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition-medium);
    text-align: center;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    text-align: center;
    line-height: 1.2;
}

.portfolio-overlay p {
    color: white;
    text-align: center;
    margin-bottom: 1rem;
    line-height: 1.4;
    font-size: 0.9rem;
}

.portfolio-links {
    display: flex;
    gap: var(--spacing-sm);
}

.portfolio-info {
    padding: var(--spacing-md);
}

.portfolio-info h3 {
    color: #4a473c;
    margin-bottom: var(--spacing-xs);
}

.portfolio-tags {
    color: #a7a088;
    font-size: 0.9rem;
}

/* ================================
   About Section
   ================================ */
.about-section {
    background: #e3e0d5;
    box-shadow: 
        inset 0 10px 30px rgba(44, 40, 37, 0.05),
        inset 0 -10px 30px rgba(255, 255, 255, 0.3);
}

.about-card {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-lg);
    align-items: center;
    background: var(--color-bg-secondary);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: 
        12px 12px 24px rgba(44, 40, 37, 0.15),
        -12px -12px 24px rgba(255, 255, 255, 0.7);
    transition: var(--transition-medium);
}

.about-card:hover {
    box-shadow: 
        16px 16px 32px rgba(44, 40, 37, 0.2),
        -16px -16px 32px rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.about-image {
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.about-content h2 {
    text-align: left;
    margin-bottom: var(--spacing-md);
}

.about-content p {
    color: #a7a088;
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.about-content .script-word {
    color: #948e79;
}

/* ================================
   Skills Section
   ================================ */
.skills-section {
    background: var(--color-bg-secondary);
    position: relative;
    overflow: hidden;
}

.skills-section .container {
    position: relative;
    z-index: 1;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--spacing-md);
    align-items: stretch;
}

.skill-category {
    background: var(--color-bg-primary);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: 
        10px 10px 20px rgba(44, 40, 37, 0.15),
        -10px -10px 20px rgba(255, 255, 255, 0.7);
    transition: var(--transition-medium);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 
        14px 14px 28px rgba(44, 40, 37, 0.2),
        -14px -14px 28px rgba(255, 255, 255, 0.8);
}

.skill-category h3 {
    color: #4a473c;
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

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

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    flex-grow: 1;
    align-content: flex-start;
}

.skill-tag {
    background: var(--color-primary);
    color: white;
    padding: 0.35rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    border: 1px solid var(--color-primary);
    transition: var(--transition-fast);
    box-shadow: 
        4px 4px 8px rgba(44, 40, 37, 0.15),
        -4px -4px 8px rgba(255, 255, 255, 0.5);
}

.skill-tag:hover {
    background: white;
    color: #4a473c;
    border-color: #4a473c;
    box-shadow: 
        6px 6px 12px rgba(44, 40, 37, 0.2),
        -6px -6px 12px rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

/* ================================
   Certifications Section
   ================================ */
.certifications-section {
    background: #e3e0d5;
    position: relative;
    overflow: hidden;
}

.certifications-section .container {
    position: relative;
    z-index: 1;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.cert-card {
    background: var(--color-bg-secondary);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: 
        10px 10px 20px rgba(44, 40, 37, 0.15),
        -10px -10px 20px rgba(255, 255, 255, 0.7);
    transition: var(--transition-medium);
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        14px 14px 28px rgba(44, 40, 37, 0.2),
        -14px -14px 28px rgba(255, 255, 255, 0.8);
}

.cert-card:hover .cert-icon {
    animation: bounce 0.6s ease;
}

.cert-icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

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

@keyframes subtleBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.cert-card h3 {
    color: #4a473c;
    margin-bottom: var(--spacing-xs);
}

.cert-issuer {
    color: #a7a088;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.cert-date {
    color: #a7a088;
    font-size: 0.9rem;
}

/* ================================
   Blog Section
   ================================ */
.blog-section {
    background: var(--color-bg-secondary);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-md);
}

.blog-card {
    background: var(--color-bg-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 5px 20px var(--color-shadow);
    transition: var(--transition-medium);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--color-shadow-dark);
}

.blog-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

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

.blog-content {
    padding: var(--spacing-md);
}

.blog-content h3 {
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-sm);
    font-size: 1.3rem;
}

.blog-subtitle {
    color: #a7a088;
    margin-bottom: var(--spacing-md);
    font-size: 0.95rem;
}

.blog-meta {
    display: flex;
    gap: var(--spacing-md);
    color: #a7a088;
    font-size: 0.85rem;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ================================
   Contact Section
   ================================ */
.contact-section {
    background: #e3e0d5;
    position: relative;
    overflow: hidden;
}

.contact-section .container {
    position: relative;
    z-index: 1;
}

.contact-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.social-links {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.social-card {
    background: var(--color-bg-secondary);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 
        8px 8px 16px rgba(44, 40, 37, 0.15),
        -8px -8px 16px rgba(255, 255, 255, 0.7);
    transition: var(--transition-medium);
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        12px 12px 24px rgba(44, 40, 37, 0.2),
        -12px -12px 24px rgba(255, 255, 255, 0.8);
}

.social-card i {
    font-size: 2rem;
    color: var(--color-primary);
}

.contact-form-container {
    background: var(--color-bg-secondary);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: 
        12px 12px 24px rgba(44, 40, 37, 0.15),
        -12px -12px 24px rgba(255, 255, 255, 0.7);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.form-group label {
    color: #4a473c;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    padding: 0.875rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 1rem;
    color: #4a473c;
    background: var(--color-bg-primary);
    transition: all 0.3s ease;
    box-shadow: 
        inset 4px 4px 8px rgba(44, 40, 37, 0.1),
        inset -4px -4px 8px rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 
        inset 4px 4px 8px rgba(44, 40, 37, 0.1),
        inset -4px -4px 8px rgba(255, 255, 255, 0.5),
        0 0 20px rgba(185, 178, 151, 0.4);
}

.form-group textarea {
    resize: vertical;
}

.btn-submit {
    justify-content: center;
    width: 100%;
    margin-top: var(--spacing-sm);
}

/* ================================
   Footer
   ================================ */
.footer {
    background: var(--color-text-primary);
    color: var(--color-bg-primary);
    text-align: center;
    padding: var(--spacing-md);
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-family: 'Gwendolyn', cursive;
    font-weight: 700;
    font-size: 2rem;
    color: var(--color-bg-primary);
}

.footer i {
    color: var(--color-primary);
}

#year {
    color: var(--color-bg-primary);
}

/* ================================
   Responsive Design
   ================================ */
@media (max-width: 1200px) {
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--color-bg-secondary);
        width: 100%;
        text-align: center;
        transition: var(--transition-medium);
        box-shadow: 0 10px 27px var(--color-shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .about-card {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 2.5rem;
    }

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

    .portfolio-grid,
    .skills-grid,
    .certifications-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .social-links {
        flex-direction: column;
    }
}

/* ================================
   Image Modal
   ================================ */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(255, 255, 255, 0.98);
    animation: fadeIn 0.3s ease;
}

.image-modal.active {
    display: block;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #6f6b5b;
    font-size: 50px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10000;
}

.modal-close:hover,
.modal-close:focus {
    color: var(--color-primary);
    text-decoration: none;
    cursor: pointer;
}

