/* ========================================
   GLOBAL STYLES & VARIABLES
   ======================================== */
:root {
    /* Color Palette */
    --dark: #1B1B1B;
    --darker: #323232;
    --light: #FFE7D0;
    --accent: #FC6E20;
    --accent-light: #FF8C42;
    --accent-dark: #E65A0D;
    --accent-glow: rgba(252, 110, 32, 0.3);
    --white: #FFFFFF;
    --gray: #888888;
    --light-gray: #CCCCCC;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-secondary: 'Poppins', 'Inter', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 15px;
    --radius-lg: 20px;
    --radius-xl: 50px;
    --radius-circle: 50%;
    
    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.25);
    --shadow-xl: 0 30px 80px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 0 30px var(--accent-glow);
    
    /* Transitions & Animations */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* Z-Index */
    --z-header: 1000;
    --z-modal: 2000;
    --z-overlay: 3000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.8;
    color: var(--white);
    background-color: var(--dark);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(252, 110, 32, 0.03) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(252, 110, 32, 0.03) 0%, transparent 20%);
    pointer-events: none;
    z-index: -2;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    position: relative;
}

h1 {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.6rem, 3.2vw, 2.2rem);
}

h4 {
    font-size: clamp(1.3rem, 2.6vw, 1.6rem);
    color: var(--accent);
    font-weight: 700;
}

h5 {
    font-size: clamp(1.1rem, 2.2vw, 1.3rem);
    font-weight: 600;
}

h6 {
    font-size: clamp(1rem, 2vw, 1.1rem);
    font-weight: 600;
    color: var(--light-gray);
}

p {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--light-gray);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

strong {
    color: var(--white);
    font-weight: 600;
}

em {
    color: var(--accent);
    font-style: italic;
}

/* ========================================
   UTILITIES & HELPERS
   ======================================== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-xxl) 0;
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.05) 100%);
    z-index: -1;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-title h2 {
    display: inline-block;
    margin-bottom: var(--spacing-sm);
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 70px;
    height: 5px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-glow);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-header);
    background: rgba(27, 27, 27, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    padding: 0;
}

header.scrolled {
    background: rgba(27, 27, 27, 0.98);
    box-shadow: var(--shadow-lg);
    padding: 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.logo {
    font-family: var(--font-secondary);
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: pointer;
    position: relative;
    transition: var(--transition-fast);
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    opacity: 0;
    transition: var(--transition-fast);
}

.logo:hover::after {
    opacity: 1;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-links li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    position: relative;
    font-family: var(--font-primary);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.nav-links li a:hover::after {
    width: 80%;
}

.nav-links li a:hover {
    color: var(--accent);
}

.nav-links li a.active {
    color: var(--accent);
}

.nav-links li a.active::after {
    width: 80%;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.8rem;
    color: var(--white);
    transition: var(--transition-fast);
    padding: 8px;
    border-radius: var(--radius-sm);
}

.hamburger:hover {
    color: var(--accent);
    background: rgba(252, 110, 32, 0.1);
}

/* ========================================
   HOME SECTION
   ======================================== */
.home {
    background: linear-gradient(135deg, rgba(27, 27, 27, 0.85) 0%, rgba(50, 50, 50, 0.92) 100%), 
                url('https://images.unsplash.com/photo-1499950316107-9fef3d29a65d?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.home::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(252, 110, 32, 0.08) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
    z-index: -1;
}

.home::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(252, 110, 32, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(252, 110, 32, 0.1) 0%, transparent 40%);
    z-index: -1;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.home .container {
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
    position: relative;
    z-index: 2;
}

.home h1 {
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, var(--light) 0%, var(--accent) 50%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 5px 20px rgba(252, 110, 32, 0.3);
    font-weight: 900;
    position: relative;
    display: inline-block;
}

.home h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    border-radius: var(--radius-sm);
    opacity: 0.5;
}

.home p {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    margin-bottom: var(--spacing-xl);
    color: var(--light);
    opacity: 0.95;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* ========================================
   BUTTON STYLES
   ======================================== */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--dark);
    padding: 16px 48px;
    border-radius: var(--radius-xl);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition-slow);
    border: 2px solid var(--accent);
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
    box-shadow: var(--shadow-md);
    font-family: var(--font-secondary);
    cursor: pointer;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: var(--transition-base);
    z-index: 1;
}

.btn:hover::before {
    left: 100%;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
    opacity: 0;
    transition: var(--transition-base);
    z-index: 0;
}

.btn:hover::after {
    opacity: 1;
}

.btn span {
    position: relative;
    z-index: 2;
}

.btn:hover {
    background: transparent;
    color: var(--accent);
    transform: translateY(-6px) scale(1.05);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.btn:active {
    transform: translateY(-2px) scale(1);
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
    margin-left: var(--spacing-md);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--dark);
}

/* ========================================
   ABOUT SECTION - WITH PHOTO
   ======================================== */
.about {
    background: linear-gradient(135deg, var(--light) 0%, #FFD8B0 100%);
    color: var(--dark);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(252, 110, 32, 0.05) 0%, transparent 30%),
        radial-gradient(circle at 90% 80%, rgba(252, 110, 32, 0.05) 0%, transparent 30%);
    opacity: 0.6;
    z-index: 0;
}

.about .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    position: relative;
    z-index: 2;
}

.about-content {
    background: rgba(255, 255, 255, 0.98);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 3;
    border: 1px solid rgba(252, 110, 32, 0.1);
}

.about-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.3) 100%);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.about-content::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--accent), var(--accent-light), var(--accent), var(--accent-dark));
    z-index: -2;
    border-radius: var(--radius-lg);
    animation: gradientRotate 8s linear infinite;
    opacity: 0.2;
}

@keyframes gradientRotate {
    0% { transform: rotate(0deg); }
   
}

.about-content h2 {
    color: var(--dark);
    margin-bottom: var(--spacing-md);
    font-size: 2.5rem;
}

.about-content h2::after {
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    height: 4px;
    bottom: -10px;
}

.about-content p {
    color: var(--dark);
    font-size: 1.15rem;
    line-height: 2;
    margin-bottom: var(--spacing-md);
}

.about-content p:last-child {
    margin-bottom: 0;
}

.about-image {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
}

.image-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transform: perspective(1000px) rotateY(-3deg) rotateX(2deg);
    transition: var(--transition-slow);
    width: 100%;
    max-width: 500px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: perspective(1000px) rotateY(-3deg) rotateX(2deg) translateY(0); }
    50% { transform: perspective(1000px) rotateY(-3deg) rotateX(2deg) translateY(-15px); }
}

.image-container:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0) scale(1.03);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition-base);
    filter: brightness(1.1) contrast(1.05);
}

.image-container:hover img {
    filter: brightness(1.2) contrast(1.1);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, transparent 70%);
    padding: var(--spacing-lg);
    transform: translateY(100%);
    transition: var(--transition-slow);
    backdrop-filter: blur(5px);
}

.image-container:hover .image-overlay {
    transform: translateY(0);
}

.overlay-content h3 {
    color: var(--light);
    font-size: 1.8rem;
    margin-bottom: var(--spacing-xs);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

.overlay-content p {
    color: var(--white);
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 0;
    font-weight: 300;
}

/* Decorative elements */
.about::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    border-radius: var(--radius-circle);
    opacity: 0.05;
    z-index: 1;
}

/* ========================================
   SKILLS SECTION - SIMPLE & ELEGANT
   ======================================== */
.skills {
    background-color: var(--darker);
    padding: 60px 0;
}

.skills .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.skills h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    color: var(--light);
}

.skills h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.skill-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-color: rgba(252, 110, 32, 0.2);
}

.skill-card i {
    font-size: 3.2rem;
    color: var(--accent);
    margin-bottom: 20px;
    display: block;
    line-height: 1;
}

.skill-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--light);
    margin: 0;
}

/* ========================================
   EXPERIENCE SECTION - WITH IMAGES
   ======================================== */
.experience {
    background: linear-gradient(135deg, var(--light) 0%, #FFD8B0 100%);
    color: var(--dark);
    padding: 80px 0;
}

.experience .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.experience h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--dark);
    position: relative;
}

.experience h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 50px;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-item:nth-child(odd) .timeline-image::before {
    right: -20px;
    left: auto;
    transform: rotate(45deg);
}

.timeline-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.95);
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    border: 1px solid rgba(252, 110, 32, 0.1);
}

.timeline-image {
    flex: 1;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    height: 280px;
    min-width: 300px;
}

.timeline-image::before {
    content: '';
    position: absolute;
    top: 20px;
    left: -20px;
    width: 40px;
    height: 40px;
    background: var(--accent);
    transform: rotate(45deg);
    z-index: -1;
}

.timeline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.timeline-image:hover img {
    transform: scale(1.05);
}

.timeline-content h3 {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 10px;
    font-weight: 700;
}

.timeline-content h4 {
    font-size: 1.4rem;
    color: var(--dark);
    margin-bottom: 12px;
    font-weight: 600;
}

.timeline-content p {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 12px;
    line-height: 1.8;
}

.timeline-content p i {
    color: var(--accent);
    margin-right: 8px;
}

/* Timeline Dot */
.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 40px;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    border: 4px solid var(--dark);
    z-index: 3;
}

/* Responsive Design */
@media (max-width: 992px) {
    .timeline-item {
        flex-direction: column !important;
    }
    
    .timeline-image {
        min-width: 100%;
        height: 250px;
    }
    
    .timeline::before,
    .timeline-item::before {
        display: none;
    }
    
    .timeline-image::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .experience h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .timeline {
        gap: 30px;
    }
    
    .timeline-content {
        padding: 25px;
    }
    
    .timeline-content h3 {
        font-size: 1.6rem;
    }
    
    .timeline-content h4 {
        font-size: 1.3rem;
    }
    
    .timeline-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .timeline-item {
        gap: 20px;
    }
    
    .timeline-content {
        padding: 20px;
    }
    
    .timeline-content p {
        font-size: 1rem;
    }
    
    .timeline-image {
        height: 180px;
    }
}

/* ========================================
   GALLERY SECTION
   ======================================== */
.gallery {
    background: linear-gradient(135deg, var(--darker) 0%, #252525 100%);
    padding: 80px 0;
}

.gallery .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gallery h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--light);
    position: relative;
}

.gallery h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 280px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 25px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .gallery-item {
        height: 220px;
    }
    
    .gallery-overlay {
        padding: 20px;
    }
    
    .gallery-overlay h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item {
        height: 200px;
    }
}

/* ========================================
   CONTACT SECTION - CENTERED & CLEAN
   ======================================== */
.contact {
    background: linear-gradient(135deg, var(--light) 0%, #FFD8B0 100%);
    color: var(--dark);
    position: relative;
    padding: 80px 0;
}

.contact .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--dark);
    position: relative;
}

.contact h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.contact p {
    font-size: 1.15rem;
    color: var(--dark);
    opacity: 0.9;
    margin-bottom: 50px;
    line-height: 1.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form {
    background: rgba(255, 255, 255, 0.98);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-top: 30px;
    border: 1px solid rgba(252, 110, 32, 0.1);
    text-align: left;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark);
    font-weight: 600;
    font-size: 1.05rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: var(--dark);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: var(--font-primary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(252, 110, 32, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(252, 110, 32, 0.3);
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--dark);
    color: var(--white);
    font-size: 1.6rem;
    transition: transform 0.3s ease, background 0.3s ease;
    border: 2px solid var(--accent);
}

.social-links a:hover {
    background: var(--accent);
    color: var(--dark);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(252, 110, 32, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact {
        padding: 60px 0;
    }
    
    .contact h2 {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .contact p {
        font-size: 1.05rem;
        margin-bottom: 30px;
    }
    
    .contact-form {
        padding: 30px 20px;
        margin-top: 20px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 0.95rem;
    }
    
    .contact-form button {
        padding: 14px;
        font-size: 1rem;
    }
    
    .social-links {
        margin-top: 40px;
    }
    
    .social-links a {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .contact {
        padding: 50px 0;
    }
    
    .contact h2 {
        font-size: 1.8rem;
    }
    
    .contact p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .contact-form {
        padding: 25px 15px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .contact-form button {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .social-links {
        gap: 15px;
        margin-top: 30px;
    }
    
    .social-links a {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    background: linear-gradient(135deg, var(--dark) 0%, #151515 100%);
    padding: var(--spacing-lg) 0;
    text-align: center;
    border-top: 2px solid var(--accent);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--accent-light), var(--accent), transparent);
    animation: gradientMove 3s linear infinite;
}

@keyframes gradientMove {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

footer p {
    color: var(--gray);
    font-size: 1.05rem;
    margin: 0;
    padding: 0 var(--spacing-sm);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

.slide-in {
    animation: slideIn 0.8s ease-out forwards;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 992px) {
    .about .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-image {
        order: -1;
        margin-bottom: var(--spacing-lg);
    }
    
    .timeline {
        padding-left: 60px;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item::before {
        left: -56px;
    }
    
    .timeline-item {
        margin-left: 0 !important;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        flex-direction: column;
        background: rgba(50, 50, 50, 0.98);
        width: 85%;
        height: calc(100vh - 80px);
        padding: var(--spacing-xl) 0;
        transition: var(--transition-base);
        z-index: 999;
        backdrop-filter: blur(10px);
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: var(--spacing-sm) 0;
    }
    
    .nav-links li a {
        display: block;
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: 1.3rem;
        text-align: center;
    }
    
    .hamburger {
        display: block;
    }
    
    .home h1 {
        font-size: 2.8rem;
    }
    
    .home p {
        font-size: 1.4rem;
    }
    
    .btn {
        padding: 14px 40px;
        font-size: 0.9rem;
    }
    
    .btn-secondary {
        margin-left: 0;
        margin-top: var(--spacing-sm);
        display: block;
    }
    
    .about .container,
    .contact-form {
        padding: var(--spacing-lg);
    }
    
    .skills-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: var(--spacing-xl) 0;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-sm: 0.8rem;
        --spacing-md: 1.2rem;
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
        --spacing-xxl: 2.5rem;
    }
    
    .home h1 {
        font-size: 2.3rem;
    }
    
    .home p {
        font-size: 1.2rem;
    }
    
    .btn {
        padding: 12px 30px;
        font-size: 0.85rem;
        letter-spacing: 1.5px;
    }
    
    .section {
        padding: var(--spacing-lg) 0;
    }
    
    .about .container,
    .contact-form {
        padding: var(--spacing-md);
    }
    
    .skill-card {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .skill-card i {
        font-size: 3.5rem;
    }
    
    .timeline {
        padding-left: 40px;
    }
    
    .timeline::before {
        left: 10px;
    }
    
    .timeline-item::before {
        left: -46px;
        width: 20px;
        height: 20px;
    }
    
    .social-links a {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .image-container {
        border-radius: var(--radius-md);
        max-width: 100%;
    }
    
    footer p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}