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

body {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    color: #333;
    background-color: #f5f5f0;
    line-height: 1.6;
}

/* Modern Page Load Animations */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.logo {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 0.3rem;
    color: #8b7355;
    animation: fadeIn 1s ease-out 0.3s both;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links li {
    animation: fadeInUp 0.6s ease-out both;
}

.nav-links li:nth-child(1) { animation-delay: 0.4s; }
.nav-links li:nth-child(2) { animation-delay: 0.5s; }
.nav-links li:nth-child(3) { animation-delay: 0.6s; }
.nav-links li:nth-child(4) { animation-delay: 0.7s; }
.nav-links li:nth-child(5) { animation-delay: 0.8s; }

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

.nav-links a {
    text-decoration: none;
    color: #666;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #8b7355;
}

.contact-btn {
    padding: 0.7rem 2rem;
    border: 1px solid #8b7355;
    background: transparent;
    color: #8b7355;
    font-size: 0.85rem;
    letter-spacing: 0.1rem;
    cursor: pointer;
    transition: all 0.3s;
    animation: fadeIn 0.8s ease-out 0.9s both;
}

.contact-btn:hover {
    background: #8b7355;
    color: white;
}

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

/* Hero Section */
.hero {
    position: relative;
    height: 70vh;
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect fill="%23d4c4b0" width="1200" height="800"/></svg>');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: zoomIn 1.2s ease-out;
}

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

.hero-content {
    text-align: center;
    color: #333;
    max-width: 800px;
    padding: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: 0.2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    animation: fadeInScale 1s ease-out 0.5s both;
}

@keyframes fadeInScale {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.hero-subtitle {
    font-size: 1rem;
    letter-spacing: 0.15rem;
    margin-bottom: 2rem;
    color: #666;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.hero p {
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
    color: #555;
    animation: fadeInUp 0.8s ease-out 1s both;
}

.hero .contact-btn {
    animation: fadeInUp 0.8s ease-out 1.2s both, pulse 2s ease-in-out 2s infinite;
}

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

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    border: 1px solid #8b7355;
    background: transparent;
    color: #8b7355;
    text-decoration: none;
    letter-spacing: 0.15rem;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.cta-button:hover {
    background: #8b7355;
    color: white;
}

/* CTA Section Scroll Animations */
.cta-section {
    text-align: center;
    padding: 5rem 5%;
    background: white;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.cta-section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.cta-section h2 {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    color: #333;
    margin-bottom: 3rem;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.cta-section.animate-in h2 {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.2s;
}

.skill-category {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.cta-section.animate-in .skill-category:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.cta-section.animate-in .skill-category:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

.cta-section.animate-in .skill-category:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.8s;
}

/* Contact Section Scroll Animations */
.contact-section {
    padding: 5rem 5%;
    background: #e8e4df;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.contact-section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.contact-header h2 {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.contact-section.animate-in .contact-header h2 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.contact-info {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.contact-section.animate-in .contact-info {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.4s;
}

.contact-divider {
    opacity: 0;
    transform: scaleY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.contact-section.animate-in .contact-divider {
    opacity: 1;
    transform: scaleY(1);
    transition-delay: 0.6s;
}

.education-box {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.contact-section.animate-in .education-box {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.8s;
}

/* Footer Scroll Animations */
footer {
    background: #2a2a2a;
    color: #ccc;
    padding: 4rem 5% 2rem;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

footer.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.footer-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

footer.animate-in .footer-left {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.3s;
}

.footer-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

footer.animate-in .footer-right {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.5s;
}

.footer-bottom {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

footer.animate-in .footer-bottom {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.7s;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    background: white;
    padding: 2rem 0;
    border-bottom: 1px solid #e0e0e0;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 1.4s both;
}

.tab {
    padding: 1rem 3rem;
    background: transparent;
    border: none;
    color: #666;
    font-size: 0.85rem;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    border-right: 1px solid #e0e0e0;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out both;
}

.tab:nth-child(1) { animation-delay: 1.6s; }
.tab:nth-child(2) { animation-delay: 1.7s; }
.tab:nth-child(3) { animation-delay: 1.8s; }
.tab:nth-child(4) { animation-delay: 1.9s; }
.tab:nth-child(5) { animation-delay: 2s; }

.tab:last-child {
    border-right: none;
}

.tab:hover {
    color: #8b7355;
    background: #fafafa;
    transform: translateY(-3px);
}

/* Services Section */
.services {
    padding: 5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 0;
    margin-bottom: 3rem;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    min-height: auto;
}

.service-card:nth-child(even) {
    direction: ltr;
}

.service-card:nth-child(even) > * {
    direction: ltr;
}

.service-image {
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)), #d4c4b0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    padding: 0.5rem;
}

.service-img {
    width: 100%;
    max-width: 900px;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    border: 5px solid black;
    padding: 0.5rem;
    background: white;
    transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.service-img:hover {
    transform: scale(1.05); 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); 
}

.service-content {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.service-label {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    transform-origin: right center;
    font-size: 0.75rem;
    letter-spacing: 0.2rem;
    color: #8b7355;
    text-transform: uppercase;
}

.service-card:nth-child(even) .service-label {
    right: auto;
    left: 0;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: left center;
}

.service-content h2 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.service-content h2.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.service-content p {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.8;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.service-content p.animate-in {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.service-content h3 {
    font-size: 0.85rem;
    letter-spacing: 0.1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    color: #8b7355;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.service-content h3.animate-in {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.8s;
}

.service-content ul {
    list-style: none;
    color: #666;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.service-content ul.animate-in {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.2s;
}

.service-content li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.service-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #8b7355;
}

.service-content ul.animate-in li {
    opacity: 1;
    transform: translateX(0);
}

.service-content ul.animate-in li:nth-child(1) { transition-delay: 1.4s; }
.service-content ul.animate-in li:nth-child(2) { transition-delay: 1.6s; }
.service-content ul.animate-in li:nth-child(3) { transition-delay: 1.8s; }
.service-content ul.animate-in li:nth-child(4) { transition-delay: 2s; }

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 5rem 5%;
    background: white;
}

.cta-section h2 {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    color: #333;
    margin-bottom: 3rem;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.skill-category h3 {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    color: #333;
    text-align: center;
    border-bottom: 1px solid #f5f5f5;
}

.skill-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.skill-columns ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skill-columns li {
    padding: 0.6rem 0;
    color: #666;
    font-size: 0.95rem;
    border-bottom: 1px solid #f5f5f5;
    text-align: center;
    transition: all 0.3s ease;
    cursor: default;
}

.skill-columns li:hover {
    color: #333;
    background-color: #fafafa;
}

.skill-columns li:last-child {
    border-bottom: 1px solid #f5f5f5;
}

/* Contact Section */
.contact-section {
    padding: 5rem 5%;
    background: #e8e4df;
}

.contact-btn.sticky-contact {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    padding: 1rem 2.5rem;
    box-shadow: 0 4px 15px rgba(139, 115, 85, 0.3);
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.contact-btn.sticky-contact.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.contact-btn.sticky-contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(139, 115, 85, 0.4);
}

.contact-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 4rem;
}

.contact-header h2 {
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: 0.05rem;
    line-height: 1.6;
    color: #666;
    text-transform: uppercase;
}

.contact-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1px 1.5fr;
    gap: 5rem;
    align-items: start;
    justify-items: center;
}

.contact-divider {
    width: 1px;
    height: 100%;
    background: #bbb;
    min-height: 400px;
}

.contact-info {
    padding-top: 2rem;
    width: 100%;
    max-width: 300px;
}

.contact-info .info-item {
    margin-bottom: 1.5rem;
}

.info-item h3 {
    font-size: 1rem;
    letter-spacing: 0.15rem;
    text-transform: uppercase;
    color: #2a2a2a;
    margin-bottom: 0.3rem;
    font-weight: 400;
}

.info-item p {
    color: #444;
    line-height: 1.8;
    font-size: 1rem;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icons a {
    color: #444;
    text-decoration: none;
    font-size: 1.3rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #8b7355;
}

.animated-tagline {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
    margin-top: 1.5rem;
    overflow: hidden;
    border-right: 2px solid transparent;
    white-space: nowrap;
    width: 0;
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

.contact-section.animate-in .animated-tagline {
    opacity: 1;
    transition-delay: 2.5s; 
}

.animated-tagline.typing {
    animation: typing 3.5s steps(40) 2.8s 1 normal forwards, 
               blink 0.75s step-end 2.8s 5, 
               removeCursor 0.1s 7.3s forwards;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink {
    50% { border-right-color: #8b7355 }
}

@keyframes removeCursor {
    to { border-right-color: transparent }
}

.contact-form {
    padding-top: 2rem;
}

.education-box {
    padding-top: 2rem;
    width: 100%;
    max-width: 500px;
}

.education-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 0.5rem;
}

.education-divider {
    border: none;
    border-top: 1px solid #d0d0d0;
    margin: 1.5rem 0;
}

.education-item {
    margin-bottom: 3rem;
}

.education-item:last-child {
    margin-bottom: 0;
}

.education-item h3 {
    font-size: 1rem;
    font-weight: 400;
    color: #2a2a2a;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    line-height: 1.3;
}

.education-item .degree {
    font-size: 1rem;
    color: #444;
    margin-bottom: 0.3rem;
    font-weight: 400;
    line-height: 1.3;
}

.education-item .date {
    font-size: 1rem;
    color: #444;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.education-item .details {
    font-size: 1rem;
    color: #444;
    line-height: 1.3;
}

.education-item .coursework,
.education-item .certifications {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1.5rem;
}

.education-item .coursework li,
.education-item .certifications li {
    font-size: 1rem;
    color: #444;
    padding: 0.4rem 0;
    border-bottom: none;
    line-height: 1.3;
}

.education-item .certifications {
    grid-template-columns: 1fr;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border: 1px solid #bbb;
    background: transparent;
    font-family: inherit;
    font-size: 0.8rem;
    letter-spacing: 0.1rem;
    color: #666;
    text-transform: uppercase;
    transition: border-color 0.3s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
    letter-spacing: 0.1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8b7355;
}

.form-group textarea {
    resize: vertical;
}

.submit-btn {
    padding: 1.2rem 4rem;
    background: #b8ab9a;
    color: white;
    border: none;
    font-size: 0.85rem;
    letter-spacing: 0.15rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s;
    border-radius: 25px;
    font-weight: 300;
}

.submit-btn:hover {
    background: #a8987e;
}

/* Footer */
footer {
    background: #2a2a2a;
    color: #ccc;
    padding: 4rem 5% 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
    align-items: start;
}

.footer-left .logo {
    color: #8b7355;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.footer-left p {
    line-height: 1.8;
    color: #999;
    max-width: 500px;
}

.footer-right h3 {
    font-size: 0.9rem;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: #fff;
    font-weight: 400;
    text-align: center;
}

.social-links {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    justify-content: center;
}

.social-links a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.social-links a:hover {
    color: #8b7355;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid #444;
    text-align: center;
}

.footer-bottom p {
    color: #777;
    font-size: 0.85rem;
}

/* Scroll to Top Container - under Connect links */
.scroll-top-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
}

.scroll-to-top {
    width: 45px;
    height: 45px;
    background: #8b7355;
    border: 2px solid #8b7355;
    border-radius: 50%;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top:hover {
    background: transparent;
    color: #8b7355;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(139, 115, 85, 0.3);
}

.scroll-to-top i {
    transition: transform 0.3s ease;
}

.scroll-to-top:hover i {
    transform: translateY(-3px);
}

/* Clickable Service Cards */
.service-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
}

.service-card-link:hover {
    transform: translateY(-5px);
}

.service-card-link .service-card {
    cursor: pointer;
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE & TABLET
   ============================================ */

/* Large Tablets and Small Desktops (1200px and below) */
@media (max-width: 1200px) {
    .logo {
        font-size: 1.5rem;
        letter-spacing: 0.2rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .service-content {
        padding: 3rem;
    }
    
    .service-content h2 {
        font-size: 2rem;
    }
    
    .skills-container {
        gap: 2rem;
    }
    
    .contact-content {
        gap: 3rem;
    }
}

/* Tablets (968px and below) */
@media (max-width: 968px) {
    nav {
        padding: 1.5rem 4%;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .logo {
        font-size: 1.3rem;
        letter-spacing: 0.15rem;
        align-self: flex-start;
    }
    
    .nav-links {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        width: 100%;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 0.8rem 1rem;
        font-size: 0.75rem;
        text-align: center;
        border: 1px solid #e0e0e0;
        background: #fafafa;
        transition: all 0.3s;
    }
    
    .nav-links a:hover {
        background: #8b7355;
        color: white;
        border-color: #8b7355;
    }
    
    nav .contact-btn {
        display: none !important;
    }
    
    .hero {
        height: auto;
        min-height: 60vh;
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        letter-spacing: 0.1rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    .category-tabs {
        flex-wrap: wrap;
        padding: 1.5rem 0;
    }
    
    .tab {
        padding: 0.8rem 1.5rem;
        font-size: 0.75rem;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        flex: 1 1 auto;
        min-width: 150px;
    }
    
    .tab:hover {
        transform: translateY(0);
    }
    
    .services {
        padding: 3rem 4%;
    }
    
    .service-card {
        grid-template-columns: 1fr;
        margin-bottom: 2rem;
    }
    
    .service-card:nth-child(even) {
        direction: ltr;
    }
    
    .service-image {
        min-height: 300px;
    }
    
    .service-content {
        padding: 2.5rem;
    }
    
    .service-label {
        position: static;
        transform: none !important;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .service-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-section {
        padding: 3rem 4%;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .skill-columns {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .contact-section {
        padding: 3rem 4%;
    }
    
    .contact-header h2 {
        font-size: 1.8rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-divider {
        display: none;
    }
    
    .contact-info,
    .education-box {
        max-width: 100%;
    }
    
    .education-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .education-item .coursework {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .social-links {
        flex-wrap: wrap;
    }
    
    .contact-btn.sticky-contact {
        bottom: 1.5rem;
        right: 1.5rem;
        padding: 0.8rem 2rem;
        font-size: 0.75rem;
    }
}

/* Mobile Landscape and Small Tablets (768px and below) */
@media (max-width: 768px) {
    nav {
        padding: 1.2rem 4%;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .logo {
        font-size: 1.1rem;
        letter-spacing: 0.12rem;
    }
    
    .nav-links {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        width: 100%;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 0.75rem 1rem;
        font-size: 0.72rem;
        text-align: center;
        border: 1px solid #e0e0e0;
        background: #fafafa;
    }
    
    .nav-links a:hover {
        background: #8b7355;
        color: white;
        border-color: #8b7355;
    }
    
    nav .contact-btn {
        display: none !important;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
        letter-spacing: 0.1rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .contact-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.75rem;
    }
    
    .tab {
        padding: 0.7rem 1rem;
        font-size: 0.7rem;
        min-width: 120px;
    }
    
    .service-image {
        min-height: 250px;
        padding: 0.3rem;
    }
    
    .service-img {
        border: 3px solid black;
        padding: 0.3rem;
    }
    
    .service-content {
        padding: 2rem;
    }
    
    .service-content h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .service-content p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .service-content h3 {
        font-size: 0.8rem;
    }
    
    .service-content li {
        font-size: 0.9rem;
        padding: 0.4rem 0;
    }
    
    .cta-section h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .skill-category h3 {
        font-size: 1.1rem;
    }
    
    .skill-columns li {
        font-size: 0.9rem;
        padding: 0.5rem 0;
    }
    
    .contact-header {
        margin-bottom: 2.5rem;
    }
    
    .contact-header h2 {
        font-size: 1.5rem;
    }
    
    .info-item h3 {
        font-size: 0.9rem;
    }
    
    .info-item p {
        font-size: 0.95rem;
    }
    
    .social-icons a {
        font-size: 1.2rem;
    }
    
    .animated-tagline {
        font-size: 0.8rem;
    }
    
    .education-item h3 {
        font-size: 0.95rem;
    }
    
    .education-item .degree,
    .education-item .date,
    .education-item .details {
        font-size: 0.9rem;
    }
    
    footer {
        padding: 3rem 4% 1.5rem;
    }
    
    .footer-left .logo {
        font-size: 1.3rem;
    }
    
    .footer-left p {
        font-size: 0.9rem;
    }
    
    .footer-right h3 {
        font-size: 0.85rem;
    }
    
    .social-links a {
        font-size: 0.9rem;
    }
}

/* Mobile Portrait (576px and below) */
@media (max-width: 576px) {
    nav {
        padding: 1.2rem 4%;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        position: sticky;
        top: 0;
        z-index: 100;
        gap: 1rem;
    }
    
    .logo {
        font-size: 1rem;
        margin-bottom: 0;
        letter-spacing: 0.1rem;
        white-space: nowrap;
        align-self: flex-start;
    }
    
    .nav-links {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        width: 100%;
        padding: 0;
        margin: 0;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 0.7rem 1rem;
        font-size: 0.7rem;
        letter-spacing: 0.08rem;
        text-align: center;
        border: 1px solid #e0e0e0;
        background: #fafafa;
        transition: all 0.3s;
    }
    
    .nav-links a:hover {
        background: #8b7355;
        color: white;
        border-color: #8b7355;
    }
    
    /* Hide the nav contact button on mobile */
    nav .contact-btn {
        display: none !important;
    }
    
    .hero {
        min-height: 50vh;
        padding: 2rem 0;
    }
    
    .hero-content {
        padding: 1.5rem;
    }
    
    .hero h1 {
        font-size: 1.6rem;
        letter-spacing: 0.05rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .hero p {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }
    
    .category-tabs {
        padding: 1rem 0;
        flex-direction: column;
    }
    
    .tab {
        width: 100%;
        padding: 0.8rem;
        font-size: 0.7rem;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        text-align: center;
    }
    
    .tab:last-child {
        border-bottom: none;
    }
    
    .services {
        padding: 2rem 3%;
    }
    
    .service-card {
        margin-bottom: 1.5rem;
    }
    
    .service-image {
        min-height: 200px;
        padding: 0.25rem;
    }
    
    .service-img {
        border: 2px solid black;
        padding: 0.25rem;
    }
    
    .service-content {
        padding: 1.5rem;
    }
    
    .service-label {
        font-size: 0.65rem;
        letter-spacing: 0.15rem;
        margin-bottom: 0.8rem;
    }
    
    .service-content h2 {
        font-size: 1.3rem;
        letter-spacing: 0.05rem;
        margin-bottom: 0.8rem;
    }
    
    .service-content p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
        line-height: 1.6;
    }
    
    .service-content h3 {
        font-size: 0.75rem;
        letter-spacing: 0.08rem;
        margin-bottom: 0.8rem;
    }
    
    .service-content li {
        font-size: 0.85rem;
        padding: 0.3rem 0;
        padding-left: 1.2rem;
        line-height: 1.5;
    }
    
    .cta-section {
        padding: 2.5rem 3%;
    }
    
    .cta-section h2 {
        font-size: 1.5rem;
        letter-spacing: 0.1rem;
        margin-bottom: 1.5rem;
    }
    
    .skills-container {
        gap: 1.5rem;
    }
    
    .skill-category h3 {
        font-size: 1rem;
        margin-bottom: 1rem;
        padding-bottom: 0.8rem;
    }
    
    .skill-columns {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .skill-columns li {
        font-size: 0.85rem;
        padding: 0.5rem;
    }
    
    .contact-section {
        padding: 2.5rem 3%;
    }
    
    .contact-header {
        margin-bottom: 2rem;
    }
    
    .contact-header h2 {
        font-size: 1.3rem;
        letter-spacing: 0.02rem;
    }
    
    .contact-content {
        gap: 2rem;
    }
    
    .contact-info {
        padding-top: 1rem;
    }
    
    .info-item {
        margin-bottom: 1.2rem;
    }
    
    .info-item h3 {
        font-size: 0.85rem;
        letter-spacing: 0.1rem;
    }
    
    .info-item p {
        font-size: 0.9rem;
    }
    
    .social-icons {
        gap: 1.2rem;
        flex-wrap: wrap;
    }
    
    .social-icons a {
        font-size: 1.1rem;
    }
    
    .animated-tagline {
        font-size: 0.75rem;
        margin-top: 1rem;
    }
    
    .education-box {
        padding-top: 1rem;
    }
    
    .education-item {
        margin-bottom: 2rem;
    }
    
    .education-item h3 {
        font-size: 0.9rem;
        letter-spacing: 0.1rem;
    }
    
    .education-item .degree,
    .education-item .date,
    .education-item .details {
        font-size: 0.85rem;
    }
    
    .education-item .coursework li,
    .education-item .certifications li {
        font-size: 0.85rem;
        padding: 0.3rem 0;
    }
    
    .education-divider {
        margin: 1rem 0;
    }
    
    footer {
        padding: 2.5rem 3% 1.5rem;
    }
    
    .footer-content {
        gap: 2rem;
        margin-bottom: 2rem;
    }
    
    .footer-left .logo {
        font-size: 1.2rem;
        letter-spacing: 0.15rem;
    }
    
    .footer-left p {
        font-size: 0.85rem;
        line-height: 1.6;
    }
    
    .footer-right h3 {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .social-links {
        gap: 1.5rem;
        flex-direction: column;
        align-items: center;
    }
    
    .social-links a {
        font-size: 0.85rem;
    }
    
    .scroll-top-container {
        margin-top: 1.5rem;
    }
    
    .scroll-to-top {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .footer-bottom {
        padding-top: 1.5rem;
    }
    
    .footer-bottom p {
        font-size: 0.75rem;
    }
    
    .contact-btn.sticky-contact {
        bottom: 1rem;
        right: 1rem;
        padding: 0.7rem 1.5rem;
        font-size: 0.7rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 1rem 1.2rem;
        font-size: 0.75rem;
    }
    
    .submit-btn {
        padding: 1rem 3rem;
        font-size: 0.75rem;
    }
}

/* Extra Small Mobile (420px and below) */
@media (max-width: 420px) {
    nav {
        padding: 1rem 3%;
    }
    
    .logo {
        font-size: 0.9rem;
        letter-spacing: 0.08rem;
    }
    
    .nav-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.7rem;
    }
    
    .nav-links a {
        padding: 0.65rem 0.8rem;
        font-size: 0.65rem;
        letter-spacing: 0.06rem;
    }
    
    nav .contact-btn {
        display: none !important;
    }
    
    .hero h1 {
        font-size: 1.4rem;
    }
    
    .hero-subtitle {
        font-size: 0.7rem;
    }
    
    .hero p {
        font-size: 0.8rem;
    }
    
    .contact-btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.7rem;
    }
    
    .tab {
        padding: 0.7rem;
        font-size: 0.65rem;
    }
    
    .service-content h2 {
        font-size: 1.2rem;
    }
    
    .service-content p,
    .service-content li {
        font-size: 0.8rem;
    }
    
    .cta-section h2 {
        font-size: 1.3rem;
    }
    
    .skill-category h3 {
        font-size: 0.95rem;
    }
    
    .skill-columns li {
        font-size: 0.8rem;
    }
    
    .contact-header h2 {
        font-size: 1.2rem;
    }
    
    .animated-tagline {
        font-size: 0.7rem;
        white-space: normal;
        animation: none !important;
        border-right: none !important;
        width: 100%;
    }
    
    .contact-btn.sticky-contact {
        padding: 0.6rem 1.2rem;
        font-size: 0.65rem;
        bottom: 0.8rem;
        right: 0.8rem;
    }
}

/* Prevent animations on very small screens for performance */
@media (max-width: 576px) {
    .service-card-link:hover {
        transform: none;
    }
    
    .service-img:hover {
        transform: scale(1.02);
    }
    
    .tab:hover {
        background: transparent;
    }
}