/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

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

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

:root {
    --primary-color: #2e7d32;
    --secondary-color: #1976d2;
    --accent-color: #ff9800;
    --dark-color: #1b5e20;
    --light-color: #f1f8e9;
    --text-color: #2c3e50;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-color: #e0e0e0;
    --shadow: rgba(0, 0, 0, 0.3);
}

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

/* Header and Navigation */
header {
    background-color: var(--card-bg);
    box-shadow: 0 2px 10px var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s;
}

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

.dark-mode-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 20px;
    transition: transform 0.3s;
}

.dark-mode-btn:hover {
    transform: scale(1.1);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: -280px;
    width: 280px;
    height: calc(100vh - 70px);
    background: var(--card-bg);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: left 0.3s ease;
    z-index: 999;
    overflow-y: auto;
}

.nav-menu li {
    margin-left: 0;
    margin-bottom: 10px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    padding: 12px 16px;
    border-radius: 8px;
    display: block;
}

.nav-menu a:hover {
    color: var(--secondary-color);
    background-color: rgba(25, 118, 210, 0.1);
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #2c3e50;
    margin: 3px 0;
    transition: 0.3s;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.1);
    z-index: 999;
    display: none;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 0 3px 3px 0;
}

/* Section Navigation Arrows */
.section-nav {
    position: fixed;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    z-index: 1000;
    display: none;
    flex-direction: column;
    gap: 15px;
}

.nav-arrow {
    width: 50px;
    height: 50px;
    background: var(--card-bg);
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    color: var(--secondary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nav-arrow:hover {
    background: var(--secondary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.3);
}

.nav-arrow svg {
    width: 20px;
    height: 20px;
}

.next-arrow {
    margin-left: auto;
    margin-right: 0;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.3);
}

.back-to-top:hover {
    background: #1565c0;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: none;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    color: white;
    padding: 120px 0 80px;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hero-pattern" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="0" cy="0" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="50" cy="50" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23hero-pattern)"/></svg>');
    opacity: 0.6;
}

.hero::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 200px;
    height: 150px;
    background: url('https://images.unsplash.com/photo-1614728263952-84ea256f9679?w=200&h=150&fit=crop') center/cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    opacity: 0.1;
    transform: rotate(15deg);
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-text {
    animation: slideInLeft 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.1;
    background: linear-gradient(45deg, #fff, #e8f5e8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    line-height: 1.6;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    text-align: center;
    min-width: 160px;
}

.cta-button.primary {
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.cta-button.primary:hover {
    background-color: #e68900;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
}

.cta-button.secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.cta-button.secondary:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.cta-button.accent {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.cta-button.accent:hover {
    background: linear-gradient(135deg, #e55a2b, #e8851a);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-link {
    display: inline-block;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px) scale(1.1);
}

.hero-visual {
    position: relative;
    animation: slideInRight 1s ease-out 0.3s both;
}

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

.hero-image img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 5px solid rgba(255, 255, 255, 0.2);
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
}

.icon-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.icon-2 {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.icon-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

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

/* Section Styles */
section {
    padding: 80px 0;
    animation: fadeInUp 0.8s ease-out;
}

section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
    font-weight: 700;
}

/* About Section */
.about {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.05) 0%, rgba(139, 195, 74, 0.05) 100%);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1441974231531-c6227db76b6e?w=1200&h=800&fit=crop') center/cover;
    opacity: 0.03;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
    position: relative;
    z-index: 2;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Skills Section */
.skills {
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.05) 0%, rgba(25, 118, 210, 0.05) 100%);
    position: relative;
}

.skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(46,125,50,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

/* Modern Skills Section */
.skills-container {
    max-width: 1200px;
    margin: 0 auto;
}

.skills-header {
    text-align: center;
    margin-bottom: 50px;
}

.skills-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.skills-header p {
    font-size: 1.1rem;
    color: var(--text-color);
    opacity: 0.8;
}

.skills-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.skill-group {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.skill-group:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.skill-group.primary {
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.05) 0%, rgba(76, 175, 80, 0.08) 100%);
    border-color: rgba(46, 125, 50, 0.2);
}

.skill-group.secondary {
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.05) 0%, rgba(33, 150, 243, 0.08) 100%);
    border-color: rgba(25, 118, 210, 0.2);
}

.skill-group.primary:hover {
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(46, 125, 50, 0.2);
}

.skill-group.secondary:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 20px 40px rgba(25, 118, 210, 0.2);
}

.skill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.skill-badge.expert {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.skill-badge.worked {
    background: linear-gradient(135deg, #2196F3, #42A5F5);
    color: white;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.skill-group h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: default;
}

.skill-group.primary .tag {
    background: rgba(46, 125, 50, 0.1);
    border-color: rgba(46, 125, 50, 0.3);
    color: var(--primary-color);
}

.skill-group.secondary .tag {
    background: rgba(25, 118, 210, 0.1);
    border-color: rgba(25, 118, 210, 0.3);
    color: var(--secondary-color);
}

.tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.skill-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-group:hover::before {
    opacity: 1;
}

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

    .skill-group {
        padding: 25px;
    }

    .skills-header h2 {
        font-size: 2rem;
    }
}

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

.project-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow);
}

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

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.project-card h3 {
    padding: 20px 20px 10px;
    margin: 0;
}

.project-card p {
    padding: 0 20px;
    margin-bottom: 15px;
}

.project-links {
    padding: 0 20px;
    margin-bottom: 15px;
}

.project-link {
    display: inline-block;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.project-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.project-role {
    padding: 0 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 600;
    background: rgba(25, 118, 210, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
}

.project-tech {
    padding: 0 20px 20px;
}

.project-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.project-card p {
    margin-bottom: 20px;
    color: var(--text-color);
}

.project-tech {
    background-color: var(--light-color);
    padding: 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 500;
}

/* Design Section */
.design {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.05) 0%, rgba(233, 30, 99, 0.05) 100%);
    position: relative;
}

.design::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1542744094-3a31f272c490?w=1200&h=800&fit=crop') center/cover;
    opacity: 0.03;
}

.design-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 40px;
    opacity: 0.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.portfolio-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.portfolio-item {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px var(--shadow);
}

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

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.portfolio-item h3 {
    padding: 20px 20px 10px;
    margin: 0;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.portfolio-item p {
    padding: 0 20px;
    margin: 0 0 15px;
    color: var(--text-color);
    opacity: 0.8;
}

.portfolio-link {
    display: inline-block;
    padding: 10px 20px;
    margin: 0 20px 20px;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
}

.portfolio-link:hover {
    background: #1565c0;
    transform: translateY(-2px);
}

.design-services {
    margin-bottom: 50px;
}

.design-showcase {
    text-align: center;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow);
}

.design-showcase h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.design-showcase p {
    color: var(--text-color);
    opacity: 0.8;
}

/* Education Section */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.education-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow);
    transition: transform 0.3s;
    overflow: hidden;
}

.education-item:hover {
    transform: translateY(-5px);
}

.education-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.education-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.education-item:hover .education-image img {
    transform: scale(1.05);
}

.education-item h3 {
    padding: 20px 20px 10px;
    margin: 0;
}

.education-item .institution {
    padding: 0 20px;
    margin-bottom: 15px;
}

.education-item p {
    padding: 0 20px 20px;
    margin: 0;
}

.education-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.institution {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 500;
}

/* Experience Section */
.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline {
    position: relative;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 20px 0;
    gap: 40px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.timeline::-webkit-scrollbar {
    display: none;
}

.timeline-item {
    flex: 0 0 350px;
    background-color: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 8px 25px var(--shadow);
    position: relative;
    scroll-snap-align: start;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px var(--shadow);
}

.timeline-item.active {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(25, 118, 210, 0.3);
}

.timeline-marker {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 12px;
    height: 12px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    border: 3px solid var(--card-bg);
    z-index: 2;
}

.timeline-marker::after {
    content: attr(data-date);
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.timeline-content {
    padding: 30px 25px 25px;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.timeline-header h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin: 0;
    flex: 1;
}

.timeline-date {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 600;
    background-color: rgba(25, 118, 210, 0.1);
    padding: 4px 12px;
    border-radius: 15px;
    margin-left: 15px;
}

.timeline-status {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    margin-left: 10px;
    display: inline-block;
}

.timeline-status.ongoing {
    background-color: rgba(76, 175, 80, 0.2);
    color: #2e7d32;
}

.timeline-status.completed {
    background-color: rgba(25, 118, 210, 0.2);
    color: #1565c0;
}

.timeline-status.award {
    background-color: rgba(255, 152, 0, 0.2);
    color: #e65100;
}

.timeline-status.certified {
    background-color: rgba(156, 39, 176, 0.2);
    color: #7b1fa2;
}

.timeline-status.education {
    background-color: rgba(0, 150, 136, 0.2);
    color: #00695c;
}

.company {
    color: var(--text-color);
    margin-bottom: 15px;
    font-weight: 500;
    opacity: 0.8;
}

.timeline-details {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.3s ease;
    visibility: hidden;
}

.timeline-item.expanded .timeline-details {
    max-height: 800px;
    opacity: 1;
    visibility: visible;
}

.timeline-details p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.achievements {
    list-style: none;
    padding: 0;
}

.achievements li {
    padding: 8px 0 8px 20px;
    position: relative;
    border-left: 2px solid var(--accent-color);
    margin-bottom: 5px;
}

.achievements li::before {
    content: '✓';
    position: absolute;
    left: -12px;
    top: 8px;
    color: var(--accent-color);
    font-weight: bold;
}

.timeline-toggle {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    margin-top: 15px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.2);
}

.timeline-toggle:hover {
    background-color: #1565c0;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.3);
}

.timeline-toggle:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.2);
}


.timeline-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.nav-btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.nav-btn:hover:not(:disabled) {
    background-color: #1565c0;
    transform: translateY(-2px);
}

.nav-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.timeline-progress {
    flex: 1;
    height: 4px;
    background-color: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--secondary-color);
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 25%;
}

/* Contact Section */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.contact-item h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.contact-form button {
    background-color: var(--secondary-color);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-form button:hover {
    background-color: #1565c0;
}

.social-links-extended {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.social-link-extended {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background-color: var(--card-bg);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s;
    box-shadow: 0 2px 10px var(--shadow);
}

.social-link-extended:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px var(--shadow);
    background-color: var(--secondary-color);
    color: white;
}

.social-link-extended .social-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Designer Section */
.designer {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.05) 0%, rgba(255, 193, 7, 0.08) 100%);
    position: relative;
}

.designer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1586717791821-3f44a563fa4c?w=1200&h=800&fit=crop') center/cover;
    opacity: 0.03;
}

.designer-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 50px;
    opacity: 0.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.designer-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.service-package {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-package:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px var(--shadow);
}

.service-package.featured {
    background: linear-gradient(135deg, var(--accent-color), #ffb74d);
    color: white;
    transform: scale(1.05);
}

.service-package.featured:hover {
    transform: translateY(-5px) scale(1.05);
}

.package-header {
    text-align: center;
    margin-bottom: 25px;
}

.package-header h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.service-package.featured .price {
    color: white;
}

.package-features {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.package-features li {
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
}

.package-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.service-package.featured .package-features li::before {
    color: white;
}

.package-cta {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
    width: 100%;
    text-align: center;
}

.package-cta:hover {
    background: #1b5e20;
    transform: translateY(-2px);
}

.package-cta.featured {
    background: white;
    color: var(--accent-color);
}

.package-cta.featured:hover {
    background: #f5f5f5;
}

.designer-testimonials {
    margin-bottom: 50px;
}

.designer-testimonials h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.testimonial-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 25px var(--shadow);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px var(--shadow);
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-color);
    line-height: 1.6;
    position: relative;
}

.testimonial-content p::before {
    content: '"';
    font-size: 2rem;
    color: var(--accent-color);
    position: absolute;
    top: -10px;
    left: -15px;
    opacity: 0.3;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar img {
    border-radius: 50%;
    border: 3px solid var(--accent-color);
}

.author-info h4 {
    margin: 0 0 5px 0;
    color: var(--primary-color);
    font-size: 1rem;
}

.author-info span {
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.9rem;
}

.designer-cta {
    text-align: center;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow);
}

.designer-cta h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.6rem;
}

.designer-cta p {
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.designer-main-cta {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.3);
}

.designer-main-cta:hover {
    background: #e68900;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.4);
}

/* 3D Image Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    animation: modalZoom 0.3s ease-out;
    transform-style: preserve-3d;
}

@keyframes modalZoom {
    from {
        transform: scale(0.1) rotateX(90deg);
        opacity: 0;
    }
    to {
        transform: scale(1) rotateX(0deg);
        opacity: 1;
    }
}

.modal-content img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transform: perspective(1000px) rotateX(0deg);
    transition: transform 0.3s ease;
}

.modal-content:hover img {
    transform: perspective(1000px) rotateX(-5deg) rotateY(5deg);
}

.close-modal {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10001;
}

.close-modal:hover {
    color: var(--accent-color);
    transform: scale(1.2) rotate(90deg);
}

.clickable-image {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.clickable-image:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Contact Section */
.contact {
    margin-top: var(--spacing-xl);
    padding: 60px 40px;
    background-color: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--shadow);
    border: 2px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.03) 0%, rgba(46, 125, 50, 0.03) 100%);
    z-index: -1;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 40px;
    font-weight: 700;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.contact-form label {
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 8px;
    font-size: 1.1rem;
    display: block;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
    padding: 18px 20px;
    border: 3px solid #4CAF50;
    border-radius: 12px;
    background-color: rgba(76, 175, 80, 0.05);
    font-family: inherit;
    font-size: 1.1rem;
    color: var(--color-text-dark);
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(46, 125, 50, 0.6);
    font-weight: 500;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: #2E7D32;
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.2);
    outline: none;
    transform: translateY(-2px);
    background-color: rgba(76, 175, 80, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form select {
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 50px;
}

.contact-form button {
    padding: 18px 30px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.2rem;
    margin-top: 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-height: 60px;
}

.contact-form button[type="submit"] {
    background: linear-gradient(145deg, var(--gradient-start-light), var(--gradient-end-light));
    color: white;
    box-shadow: 0 8px 25px rgba(25, 118, 210, 0.3);
    border: 2px solid transparent;
}

.contact-form button[type="submit"]:hover {
    background: var(--button-hover-light);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(25, 118, 210, 0.4);
}

.contact-form .whatsapp-btn {
    background-color: #25D366; /* WhatsApp Green */
    color: white;
    margin-top: 15px;
    border: 2px solid #25D366;
}

.contact-form .whatsapp-btn:hover {
    background-color: #128C7E;
    border-color: #128C7E;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.contact-form button:not([type="submit"]):not(.whatsapp-btn) {
    background-color: var(--color-secondary);
    color: white;
    border: 2px solid var(--color-secondary);
}

.contact-form button:not([type="submit"]):not(.whatsapp-btn):hover {
    background-color: #0077b6;
    border-color: #0077b6;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 119, 182, 0.3);
}

.status {
    text-align: center;
    margin-top: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-primary);
    padding: 15px;
    border-radius: 10px;
    background-color: rgba(25, 118, 210, 0.1);
    border: 1px solid rgba(25, 118, 210, 0.2);
}

/* Disabled State for Selects */
.contact-form select:disabled {
    background-color: rgba(76, 175, 80, 0.05);
    opacity: 0.6;
    cursor: not-allowed;
    border-color: #4CAF50;
}

/* Form Row Layout */
.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

@media (max-width: 768px) {
    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Voice Input Button Styling */
.contact-form button[type="button"]:not(.whatsapp-btn) {
    background: linear-gradient(135deg, #9c27b0, #ba68c8);
    color: white;
    border: 2px solid #9c27b0;
    font-size: 1rem;
    padding: 12px 20px;
    min-height: 50px;
}

.contact-form button[type="button"]:not(.whatsapp-btn):hover {
    background: linear-gradient(135deg, #7b1fa2, #9c27b0);
    border-color: #7b1fa2;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(156, 39, 176, 0.3);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.contact-map {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px var(--shadow);
    position: relative;
    overflow: hidden;
}

.map-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 280px;
    border: none;
}

.map-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 20px;
    color: white;
}

.map-info h4 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.map-info p {
    margin: 0 0 10px 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.gis-coordinates {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    display: inline-block;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.contact-method {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px var(--shadow);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: all 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow);
}

.method-icon {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-shrink: 0;
}

.method-content h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.method-content p {
    margin: 0 0 5px 0;
    color: var(--text-color);
}

.method-content a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.method-content a:hover {
    color: var(--primary-color);
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.email-note,
.location-note {
    font-size: 0.85rem;
    opacity: 0.7;
    font-style: italic;
}

.contact-social h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

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

.social-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: var(--card-bg);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px var(--shadow);
}

.social-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow);
    background: var(--primary-color);
    color: white;
}

.social-item img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.social-item span {
    font-size: 0.9rem;
    font-weight: 500;
}

.contact-form-section {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow);
    position: relative;
    z-index: 2;
}

.contact-form-section h3 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.6rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.contact-form textarea {
    height: 120px;
    resize: vertical;
    margin-bottom: 20px;
}

.contact-form button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(25, 118, 210, 0.3);
}

/* Blog responsive styles */
.video-wrapper {
    padding-bottom: 56.25%;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
}

.capability-grid {
    grid-template-columns: 1fr;
    gap: 20px;
}

.capability-item {
    padding: 15px;
}

.cta-buttons {
    flex-direction: column;
    align-items: center;
}

.blog-cta {
    padding: 30px 20px;
}

.blog-header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
}

.blog-toggle {
    align-self: center;
}

.gallery-header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
}


.gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
}

.gallery-image {
    height: 180px;
}

.footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
}

.footer-text {
    text-align: center;
}

.testimonials-content {
    width: 95%;
    margin: 10% auto;
    max-height: 90vh;
}

.testimonials-header {
    padding: 20px;
}

.testimonials-intro {
    padding: 0 20px 15px;
}

.testimonials-grid {
    grid-template-columns: 1fr;
    padding: 15px 20px 20px;
    gap: 15px;
}

.testimonial-card {
    padding: 20px;
}

/* Mobile menu overlay only on mobile */
.mobile-menu-overlay {
    display: block;
}

/* Blog/Resources Section */
.blog {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.03) 0%, rgba(25, 118, 210, 0.03) 100%);
    position: relative;
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.blog-toggle {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.3);
}

.blog-toggle:hover {
    background: #1565c0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.4);
}

.blog-toggle.active {
    background: var(--primary-color);
}

.blog-toggle.active:hover {
    background: #2e7d32;
}

.blog-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 50px;
    opacity: 0.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.blog-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.6s ease, opacity 0.4s ease;
}

.blog-content.expanded {
    max-height: 4000px; /* Adjust based on content */
    opacity: 1;
}

.featured-video {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 50px;
    box-shadow: 0 10px 30px var(--shadow);
}

.featured-video h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.5rem;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 20px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-description {
    text-align: center;
    color: var(--text-color);
    opacity: 0.8;
    font-style: italic;
}

.gis-definition {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 50px;
    box-shadow: 0 10px 30px var(--shadow);
    text-align: center;
}

.gis-definition h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.definition-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto;
}

.gis-capabilities {
    margin-bottom: 50px;
}

.capability-section {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px var(--shadow);
}

.capability-section h4 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.3rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.capability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.capability-item {
    background: rgba(76, 175, 80, 0.05);
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid var(--primary-color);
}

.capability-item h5 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.capability-item ul {
    list-style: none;
    padding: 0;
}

.capability-item li {
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
    color: var(--text-color);
    opacity: 0.9;
}

.capability-item li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.blog-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 20px;
    padding: 50px 30px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(25, 118, 210, 0.3);
}

.blog-cta h3 {
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.blog-cta p {
    margin-bottom: 30px;
    opacity: 0.9;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Gallery Section */
.gallery {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.05) 0%, rgba(103, 58, 183, 0.05) 100%);
    position: relative;
}

.gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=1200&h=800&fit=crop') center/cover;
    opacity: 0.03;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}


.gallery-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 50px;
    opacity: 0.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-content {
    position: relative;
    z-index: 2;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    position: relative;
    z-index: 2;
}

.gallery-item {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px var(--shadow);
}

.gallery-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info h4 {
    color: white;
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.gallery-info p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 0.9rem;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 30px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-text {
    text-align: left;
}

.footer-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.3);
}

.footer-btn:hover {
    background: #1565c0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.4);
}

/* Testimonials Modal */
.testimonials-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: modalFadeIn 0.3s ease-out;
}

.testimonials-content {
    background-color: var(--card-bg);
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 1000px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.testimonials-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 30px 20px;
    border-bottom: 1px solid #eee;
}

.testimonials-header h3 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.8rem;
}

.close-testimonials {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-testimonials:hover {
    color: var(--primary-color);
}

.testimonials-intro {
    padding: 0 30px 20px;
    text-align: center;
    color: var(--text-color);
    opacity: 0.8;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 30px 30px;
}

.testimonial-card {
    background: rgba(76, 175, 80, 0.05);
    border-radius: 15px;
    padding: 25px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 20px;
    position: relative;
}

.testimonial-content p::before {
    content: '"';
    font-size: 3rem;
    color: var(--accent-color);
    position: absolute;
    top: -15px;
    left: -10px;
    opacity: 0.3;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.author-info h4 {
    margin: 0 0 5px 0;
    color: var(--primary-color);
    font-size: 1rem;
}

.author-info span {
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.9rem;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Desktop Timeline Navigation */
@media (min-width: 769px) {
    .timeline-navigation {
        display: flex !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 20px;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

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

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

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

    .hero-stats {
        justify-content: center;
        gap: 20px;
    }

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

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

    .about-content {
        flex-direction: column;
    }

    .skills-showcase,
    .portfolio-links,
    .designer-services,
    .testimonials-grid,
    .projects-grid,
    .education-grid {
        grid-template-columns: 1fr;
    }

    .timeline {
        flex-direction: column;
        gap: 20px;
        overflow-x: visible;
        padding: 0;
    }

    .timeline-item {
        flex: none;
        width: 100%;
        margin-left: 40px;
        position: relative;
        touch-action: manipulation;
    }

    .timeline-item::before {
        content: '';
        position: absolute;
        left: -40px;
        top: 30px;
        width: 20px;
        height: 20px;
        background-color: var(--secondary-color);
        border-radius: 50%;
        border: 3px solid var(--card-bg);
    }

    .timeline-marker {
        display: none;
    }

    .timeline-navigation {
        display: none;
    }

    /* Show navigation on larger mobile screens */
    @media (min-width: 481px) and (max-width: 768px) {
        .timeline-navigation {
            display: flex;
        }
    }

    .timeline-toggle {
        width: 100%;
        padding: 16px 24px;
        font-size: 1rem;
        min-height: 50px;
        margin-top: 20px;
    }

    .timeline-details {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.5s ease, opacity 0.3s ease;
    }

    .timeline-item.expanded .timeline-details {
        max-height: 800px; /* Increased for mobile */
        opacity: 1;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    /* Contact Form Mobile Styles */
    .contact {
        padding: 40px 20px;
        margin: 40px 20px;
    }

    .contact h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .contact-form form {
        gap: 20px;
    }

    .contact-form .form-row {
        gap: 20px;
    }

    .contact-form button {
        font-size: 1.1rem;
        padding: 16px 25px;
        min-height: 55px;
    }

    .contact-form .whatsapp-btn {
        font-size: 1.1rem;
        padding: 16px 25px;
        min-height: 55px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    section {
        padding: 50px 0;
    }

    section h2 {
        font-size: 2rem;
    }

    .hero {
        padding: 100px 0 70px;
    }

    .gallery-toggle {
        min-width: 100px;
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    .blog-toggle {
        min-width: 100px;
        padding: 6px 10px;
        font-size: 0.75rem;
    }
}