/* Global Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #2c3e50;
    --light-bg: #f8f9fa;
    --dark-bg: #2c3e50;
    --card-bg: #ffffff;
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --playground-color: #27ae60;
    --section-bg-alt: #f7f7f7;
    --bg-color: #ffffff;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Base responsive images */
img {
    max-width: 100%;
    height: auto;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 600;
}

.logo-link {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.logo-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.logo-link:hover {
    color: var(--primary-color);
}

.logo-link:hover::after {
    width: 100%;
}

/* Mobile adjustments */
@media screen and (max-width: 768px) {
    .logo-link {
        font-size: 1.3rem;
    }
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.nav-highlight {
    background: linear-gradient(135deg, var(--playground-color), #219653);
    color: white !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 25px;
    margin-left: 10px;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.2);
}

.nav-highlight i {
    margin-right: 6px;
    font-size: 0.9em;
}

.nav-highlight:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
    background: linear-gradient(135deg, #219653, var(--playground-color));
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(39, 174, 96, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0);
    }
}

.nav-highlight {
    animation: pulse 2s infinite;
}

/* Mobile adjustments for playground button */
@media screen and (max-width: 768px) {
    .nav-highlight {
        margin: 10px 15px;
        text-align: center;
        display: inline-block;
    }
}

.playground-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--playground-color);
    color: white !important;
    border-radius: 50px;
    font-size: 0.9rem;
}

.playground-link:hover {
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.2);
}

.playground-link i {
    font-size: 1rem;
}

.menu-btn {
    display: none;
    cursor: pointer;
}

/* Navbar Dropdown Styles */
.nav-links .dropdown {
    position: relative;
}

.nav-links .dropdown > a::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.nav-links .dropdown:hover > a::after {
    transform: rotate(-180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--bg-color);
    min-width: 200px;
    padding: 0.5rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    display: block;
    margin: 0;
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-color);
    text-align: left;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background-color: var(--section-bg-alt);
    color: var(--primary-color);
}

/* Mobile Navigation Adjustments */
@media screen and (max-width: 768px) {
    .nav-content {
        padding: 1rem;
        position: relative;
    }

    .menu-btn {
        display: block;
        z-index: 100;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-color);
        padding: 0.5rem;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        border-top: 1px solid rgba(128, 128, 128, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 0.75rem 1rem;
        border-radius: 6px;
        transition: all 0.2s ease;
    }

    .nav-links a:hover {
        background: var(--section-bg-alt);
    }

    .dropdown {
        width: 100%;
    }

    .dropdown > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 0.75rem 1rem;
        border-radius: 6px;
        background: transparent;
        transition: all 0.2s ease;
    }

    .dropdown.active > a {
        background: var(--section-bg-alt);
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    .nav-links .dropdown > a::after {
        content: '▼';
        font-size: 0.8em;
        margin-left: 0.5rem;
        transition: transform 0.2s ease;
    }

    .dropdown.active > a::after {
        transform: rotate(180deg);
    }

    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: hidden;
        display: none;
        width: 100%;
        margin-top: 0;
        background: var(--section-bg-alt);
        border-bottom-left-radius: 6px;
        border-bottom-right-radius: 6px;
        overflow: hidden;
    }

    .dropdown.active .dropdown-menu {
        display: block;
        visibility: visible;
        border-top: 1px solid rgba(128, 128, 128, 0.1);
    }

    .dropdown-menu a {
        padding: 0.75rem 1.5rem;
        border-radius: 0;
        background: transparent;
        transition: all 0.2s ease;
    }

    .dropdown-menu a:hover {
        background: rgba(128, 128, 128, 0.1);
        padding-left: 1.75rem;
    }

    .nav-highlight {
        margin: 0.25rem 0.5rem;
        text-align: center;
    }

    .nav-highlight a {
        background: var(--primary-color);
        color: white;
        border-radius: 6px;
    }

    .nav-highlight a:hover {
        background: var(--primary-color-dark);
        transform: translateY(-1px);
    }
}

/* Additional tablet-specific adjustments */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .nav-content {
        padding: 1rem 2rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .dropdown-menu {
        min-width: 180px;
    }
}

/* Small mobile adjustments */
@media screen and (max-width: 480px) {
    .logo-link {
        font-size: 1.2rem;
    }

    .nav-links {
        padding: 0.5rem;
    }

    .nav-links a {
        padding: 0.5rem 0;
    }

    .dropdown-menu {
        margin-top: 0.3rem;
    }

    .nav-highlight {
        padding: 0.5rem 1rem !important;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8%;
    background: white;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
}

.hero-text {
    position: relative;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    display: block;
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.typing-container {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.static-text {
    color: var(--primary-color);
    font-weight: 600;
}

.dynamic-text {
    color: var(--secondary-color);
    font-weight: 600;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 2rem;
    max-width: 90%;
}

.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.expertise-tags span {
    background: rgba(52, 152, 219, 0.1);
    color: var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.expertise-tags span:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

.profile-container {
    position: relative;
    z-index: 2;
    width: 500px;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 2%;
}

.profile-frame {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: visible;
    background: none;
    box-shadow: none;
    transform: none;
    transition: transform 0.5s ease;
}

.profile-frame:hover {
    transform: scale(1.02);
    box-shadow: none;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: none;
    transition: transform 0.5s ease;
}

.profile-frame:hover .profile-image {
    transform: scale(1.02);
}

.profile-overlay {
    display: none;
}

.security-grid {
    display: none;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(41, 128, 185, 0.2);
}

.btn.primary {
    color: white;
    background: #2980b9;
}

.btn.secondary {
    background: transparent;
    border: 2px solid #2980b9;
    color: #2980b9;
}

.btn.secondary:hover {
    background: #2980b9;
    color: white;
}

.btn i {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .cta-buttons {
        justify-content: center;
        gap: 0.8rem;
    }
}

@media (max-width: 480px) {
    .cta-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 1.5rem auto 0;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Media Queries */
@media (max-width: 1024px) {
    .hero-text h1 {
        font-size: 3.5rem;
    }
    
    .typing-container {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 0.7rem 1.3rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 120px 5% 60px;
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .typing-container {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin: 1.5rem auto;
    }
    
    .expertise-tags {
        justify-content: center;
    }
    
    .cta-buttons {
        justify-content: center;
        gap: 0.8rem;
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .typing-container {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .expertise-tags span {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 1.5rem auto 0;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
}

/* Sections */
section {
    padding: 5rem 1rem;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

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

/* About Section */
.about {
    background: var(--light-bg);
}

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

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

.key-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.highlight {
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

.highlight i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Expertise Section */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.expertise-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

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

.expertise-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.expertise-card ul {
    list-style: none;
    margin-top: 1rem;
}

.expertise-card ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.expertise-card ul li:before {
    content: "•";
    color: var(--secondary-color);
    position: absolute;
    left: 0;
}

/* Experience Section */
.experience {
    background: var(--light-bg);
    padding: 5rem 1rem;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.experience-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

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

.experience-content {
    padding: 2rem;
}

.experience-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.experience-content .role {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.experience-content .duration {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.experience-content ul {
    list-style: none;
    margin-top: 1rem;
}

.experience-content ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.experience-content ul li:before {
    content: "•";
    color: var(--secondary-color);
    position: absolute;
    left: 0;
}

/* Certifications Section */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cert-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

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

.cert-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.cert-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    display: block;
    margin: 0 auto 1rem auto;
}

/* Contact Section */
.contact {
    background-color: var(--light-bg);
    padding: 80px 0 40px;
}

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

.contact h2 {
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 30px;
    font-size: 2.5rem;
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.contact-description {
    text-align: center;
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.contact-buttons {
    display: flex;
    gap: 20px;
    width: 100%;
    max-width: 600px;
}

.primary-button {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background-color: #2980b9;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.primary-button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.primary-button i {
    font-size: 1.2rem;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.social-links a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid #2c3e50;
    transition: all 0.3s ease;
}

.social-links a i {
    font-size: 1.4rem;
    color: #0077b5;
    transition: all 0.3s ease;
}

.site-logo {
    width: 25px;
    height: 25px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.link-text {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(44, 62, 80, 0.95);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    top: -80px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

/* Add arrow at the bottom of tooltip */
.link-text::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(44, 62, 80, 0.95);
}

.site-name {
    font-weight: 600;
    margin-bottom: 2px;
}

.site-url {
    font-size: 0.8rem;
    opacity: 0.9;
}

.social-links a:hover .icon-wrapper {
    transform: translateY(3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-color: #2980b9;
}

.social-links a:hover .link-text {
    opacity: 1;
    transform: translateY(0);
}

.social-links a:hover i,
.social-links a:hover .site-logo {
    transform: scale(1.1);
}

/* Specific social icon styles */
.social-links a:nth-child(1) .icon-wrapper {
    border-color: #0077b5;
}

.social-links a:nth-child(1):hover .icon-wrapper {
    background-color: #f8f9fa;
    border-color: #0077b5;
}

.social-links a:nth-child(2) .icon-wrapper,
.social-links a:nth-child(3) .icon-wrapper {
    border-color: #2980b9;
}

.social-links a:nth-child(2):hover .icon-wrapper,
.social-links a:nth-child(3):hover .icon-wrapper {
    background-color: #f8f9fa;
    border-color: #2980b9;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .contact {
        padding: 60px 0 30px;
    }

    .contact h2 {
        font-size: 2rem;
    }

    .contact-buttons {
        flex-direction: column;
    }

    .primary-button {
        width: 100%;
        justify-content: center;
    }
    
    .social-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .link-text {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .social-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .social-links a {
        padding: 10px;
        flex-direction: column;
        text-align: center;
    }

    .icon-wrapper {
        margin-right: 0;
        margin-bottom: 5px;
    }

    .link-text {
        font-size: 0.8rem;
    }
}

/* Landscape mode */
@media (max-height: 480px) and (orientation: landscape) {
    .social-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

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

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: #3498db;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 30px;
    position: relative;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: #fff;
    border: 2px solid #3498db;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-item.left::after {
    right: -6px;
}

.timeline-item.right::after {
    left: -6px;
}

.card {
    background: #fff;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    position: relative;
}

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

.card i {
    font-size: 1.2em;
    color: #3498db;
    margin-bottom: 8px;
}

.card h3 {
    margin: 5px 0;
    color: #2c3e50;
    font-size: 1em;
    font-weight: 600;
}

.card .role {
    color: #7f8c8d;
    font-size: 0.85em;
    display: block;
}

.date {
    font-size: 0.8em;
    color: #3498db;
    font-weight: 500;
    margin-bottom: 5px;
}

@media screen and (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 15px;
    }
    
    .timeline-item.right {
        left: 0;
    }
    
    .timeline-item::after {
        left: 25px;
        top: 20px;
        width: 12px;
        height: 12px;
    }
    
    .timeline-item.left::after {
        left: 25px;
        right: auto;
    }
}

@media screen and (max-width: 480px) {
    .timeline::after {
        left: 31px;
        width: 2px;
    }

    .timeline-item::after {
        left: 25px;
        top: 20px;
        width: 12px;
        height: 12px;
        border: 2px solid #2980b9;
        background-color: white;
    }

    .timeline-item.right::after {
        left: 25px;
    }
}

/* Footer */
footer {
    background-color: var(--light-bg);
    border-top: 1px solid #eaeaea;
    padding: 15px 0 20px;
    margin-top: 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.footer-content p {
    color: #666;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    footer {
        padding: 12px 0 15px;
    }

    .footer-content p {
        font-size: 0.8rem;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 4rem 2rem;
    }

    .hero-content {
        margin-bottom: 3rem;
    }

    .expertise-tags {
        justify-content: center;
    }

    .profile-container {
        width: 400px;
        height: 500px;
    }
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 3rem;
    }

    .typing-container {
        font-size: 2rem;
    }

    .profile-container {
        width: 300px;
        height: 400px;
        margin: 0 auto 2rem;
    }

    .hero {
        flex-direction: column-reverse;
        padding: 120px 5% 60px;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-description {
        max-width: 100%;
        margin: 0 auto 2rem;
    }

    .expertise-tags {
        justify-content: center;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .menu-btn {
        display: block;
    }

    .experience-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 15px;
    }
    
    .timeline-item.right {
        left: 0;
    }
    
    .timeline-item::after {
        left: 25px;
    }
    
    .timeline-item.left::after {
        left: 25px;
        right: auto;
    }
}

/* Skills Section */
.skills {
    background-color: white;
    padding: 80px 0;
}

.skills h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--dark-text);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.skill-category {
    background: var(--light-bg);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.skill-category h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid white;
}

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

.skill-list li {
    color: var(--dark-text);
    padding: 8px 0;
    font-size: 0.95rem;
    position: relative;
    padding-left: 20px;
}

.skill-list li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Mobile Responsiveness for Skills */
@media (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .skills {
        padding: 60px 0;
    }

    .skills h2 {
        margin-bottom: 30px;
    }

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

    .skill-category {
        padding: 20px;
    }

    .skill-category h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .skill-list li {
        font-size: 0.9rem;
        padding: 6px 0 6px 18px;
    }
}

/* Education Section */
.education {
    padding: 4rem 0;
    background-color: var(--bg-color);
}

.education-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.education-item {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.education-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.education-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

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

.duration, .grade {
    color: var(--text-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.courses {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.courses span {
    background: white;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--primary-color);
}

/* Certifications Section */
.certifications {
    padding: 4rem 0;
    background-color: var(--section-bg-alt);
}

.cert-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.cert-item {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.cert-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.cert-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Strategic Initiatives Section */
.initiatives {
    padding: 5rem 2rem;
    background: white;
}

.initiatives h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
}

.initiatives h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.initiatives-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 2rem;
    padding: 0 1rem;
}

.initiative-card {
    border-radius: 12px;
    background: white;
    padding: 2rem;
    display: flex;
    gap: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(52, 152, 219, 0.1);
}

.initiative-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(52, 152, 219, 0.3);
}

.initiative-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    background: rgba(52, 152, 219, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.initiative-content {
    flex: 1;
}

.initiative-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.impact-metrics {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.impact-metrics span {
    border-radius: 20px;
    background: rgba(52, 152, 219, 0.1);
    color: var(--secondary-color);
    padding: 0.3rem 0.8rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.initiative-content p {
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.key-achievements {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.key-achievements span {
    background: white;
    color: var(--text-color);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(52, 152, 219, 0.2);
    transition: all 0.3s ease;
}

.key-achievements span:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .initiative-card {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }

    .initiative-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .impact-metrics {
        flex-wrap: wrap;
    }

    .initiatives-container {
        padding: 0;
    }
}

/* Publications Section */
.publications {
    padding: 4rem 0;
    background-color: var(--section-bg-alt);
}

.publications-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.publication-card {
    background: var(--bg-color);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.publication-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.publication-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.publication-logo {
    width: 40px;
    height: 40px;
    margin-right: 1rem;
    border-radius: 4px;
}

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

.publication-description {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.publication-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.publication-topics span {
    background: var(--accent-color-light);
    color: var(--text-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

.publication-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.publication-link i {
    margin-right: 0.5rem;
    font-size: 0.875rem;
}

.publication-link:hover {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .publications-container {
        grid-template-columns: 1fr;
    }
    
    .publication-card {
        padding: 1.5rem;
    }
}

/* Contact Section */
.contact {
    padding: 4rem 0;
    background-color: var(--bg-color);
}

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

.contact h2 {
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 30px;
    font-size: 2.5rem;
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.contact-description {
    text-align: center;
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.contact-buttons {
    display: flex;
    gap: 20px;
    width: 100%;
    max-width: 600px;
}

.primary-button {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background-color: #2980b9;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.primary-button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.primary-button i {
    font-size: 1.2rem;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.social-links a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid #2c3e50;
    transition: all 0.3s ease;
}

.social-links a i {
    font-size: 1.4rem;
    color: #0077b5;
    transition: all 0.3s ease;
}

.site-logo {
    width: 25px;
    height: 25px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.link-text {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(44, 62, 80, 0.95);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    top: -80px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

/* Add arrow at the bottom of tooltip */
.link-text::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(44, 62, 80, 0.95);
}

.site-name {
    font-weight: 600;
    margin-bottom: 2px;
}

.site-url {
    font-size: 0.8rem;
    opacity: 0.9;
}

.social-links a:hover .icon-wrapper {
    transform: translateY(3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-color: #2980b9;
}

.social-links a:hover .link-text {
    opacity: 1;
    transform: translateY(0);
}

.social-links a:hover i,
.social-links a:hover .site-logo {
    transform: scale(1.1);
}

/* Specific social icon styles */
.social-links a:nth-child(1) .icon-wrapper {
    border-color: #0077b5;
}

.social-links a:nth-child(1):hover .icon-wrapper {
    background-color: #f8f9fa;
    border-color: #0077b5;
}

.social-links a:nth-child(2) .icon-wrapper,
.social-links a:nth-child(3) .icon-wrapper {
    border-color: #2980b9;
}

.social-links a:nth-child(2):hover .icon-wrapper,
.social-links a:nth-child(3):hover .icon-wrapper {
    background-color: #f8f9fa;
    border-color: #2980b9;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .contact {
        padding: 60px 0 30px;
    }

    .contact h2 {
        font-size: 2rem;
    }

    .contact-buttons {
        flex-direction: column;
    }

    .primary-button {
        width: 100%;
        justify-content: center;
    }
    
    .social-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .link-text {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .social-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .social-links a {
        padding: 10px;
        flex-direction: column;
        text-align: center;
    }

    .icon-wrapper {
        margin-right: 0;
        margin-bottom: 5px;
    }

    .link-text {
        font-size: 0.8rem;
    }
}

/* Landscape mode */
@media (max-height: 480px) and (orientation: landscape) {
    .social-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

/* Responsive typography and elements */
@media screen and (max-width: 768px) {
    /* Typography scaling */
    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    p, li {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    /* Hero section */
    .hero {
        padding: 60px 0;
    }

    .hero p {
        max-width: 100%;
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    /* Skills section */
    .skills {
        padding: 40px 0;
    }

    .skill-category {
        padding: 15px;
    }

    .skill-category h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .skill-list li {
        font-size: 0.9rem;
        padding: 3px 0;
    }

    /* Experience section */
    .experience {
        padding: 40px 0;
    }

    .timeline-item .card {
        padding: 15px;
    }

    .timeline-item .card h3 {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }

    .timeline-item .card .role {
        font-size: 0.9rem;
    }

    .timeline-item .card .date {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }

    .timeline-item .card p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    /* Contact section */
    .contact {
        padding: 40px 0;
    }

    .social-links a {
        padding: 10px;
    }

    .icon-wrapper {
        width: 30px;
        height: 30px;
    }

    .link-text {
        font-size: 0.9rem;
    }

    /* Footer */
    footer {
        padding: 15px 0;
    }

    .footer-content p {
        font-size: 0.8rem;
    }
}

/* Even smaller screens */
@media screen and (max-width: 480px) {
    /* Further typography reduction */
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    /* Container padding */
    .container {
        padding: 0 15px;
    }

    /* Navigation */
    header {
        padding: 15px 0;
    }

    .nav-links {
        gap: 12px;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    /* Hero section */
    .hero {
        padding: 40px 0;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 0.95rem;
        max-width: 100%;
        margin-bottom: 20px;
    }

    /* Skills section */
    .skills {
        padding: 30px 0;
    }

    .skills h2 {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .skill-category {
        padding: 15px;
    }

    .skill-category h3 {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    .skill-list li {
        font-size: 0.9rem;
        padding: 5px 0 5px 15px;
    }

    /* Experience section */
    .experience {
        padding: 30px 0;
    }

    .timeline-item .card {
        padding: 12px;
    }

    .timeline-item .card p {
        font-size: 0.85rem;
        line-height: 1.3;
    }

    /* Contact section */
    .contact {
        padding: 30px 0;
    }

    .social-links {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .social-links a {
        width: 100%;
    }
}

/* Landscape mode optimization */
@media screen and (max-height: 480px) and (orientation: landscape) {
    .hero {
        padding: 30px 0;
    }

    .skills, .experience, .contact {
        padding: 25px 0;
    }

    .timeline-item {
        margin: 12px 0;
    }

    .social-links {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

/* Standard Responsive Breakpoints */
/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Large devices (desktops, 992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }

    .timeline-item .card {
        padding: 25px;
    }
}

/* Medium devices (tablets, 768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 720px;
        padding: 0 20px;
    }

    /* Header & Navigation */
    .nav-links {
        gap: 20px;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    /* Hero Section */
    .hero {
        padding: 100px 0;
    }

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

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

    /* Skills Section */
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 20px;
    }

    .skill-category {
        padding: 20px;
    }

    /* Experience Timeline */
    .timeline-item .card {
        padding: 20px;
    }

    .timeline-item .card h3 {
        font-size: 1.2rem;
    }

    .timeline-item .card .role {
        font-size: 0.9rem;
    }

    .timeline-item .card .date {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }

    .timeline-item .card p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    /* Contact Section */
    .contact .container {
        padding: 0 20px;
    }

    .social-links {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .social-links a {
        width: 100%;
    }
}

/* Small devices (landscape phones, 576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .container {
        max-width: 540px;
        padding: 0 15px;
    }

    /* Header & Navigation */
    .nav-links {
        gap: 15px;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    /* Hero Section */
    .hero {
        padding: 80px 0;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
        max-width: 100%;
    }

    /* Skills Section */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .skill-category h3 {
        font-size: 1.1rem;
    }

    /* Experience Timeline */
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item.left {
        left: 0;
    }

    .timeline-item.right {
        left: 0;
    }

    .timeline-item::after {
        left: 25px;
    }

    .timeline-item.left::after {
        left: 25px;
        right: auto;
    }

    .timeline-item .card {
        padding: 15px;
    }

    .timeline-item .card::after {
        display: none;
    }

    .timeline-item .card h3 {
        font-size: 1.1rem;
    }

    .timeline-item .card .role {
        font-size: 0.9rem;
    }

    .timeline-item .card .date {
        font-size: 0.85rem;
    }

    /* Contact Section */
    .contact .container {
        padding: 0 15px;
    }

    .social-links {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .social-links a {
        width: 100%;
    }
}

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575px) {
    .container {
        width: 100%;
        padding: 0 15px;
    }

    /* Header & Navigation */
    header {
        padding: 15px 0;
    }

    .nav-links {
        gap: 12px;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    /* Hero Section */
    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 0.95rem;
        max-width: 100%;
        margin-bottom: 20px;
    }

    /* Skills Section */
    .skills {
        padding: 40px 0;
    }

    .skills h2 {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .skill-category {
        padding: 15px;
    }

    .skill-category h3 {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    .skill-list li {
        font-size: 0.9rem;
        padding: 5px 0 5px 15px;
    }

    /* Experience Timeline */
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 15px;
    }

    .timeline-item.left {
        left: 0;
    }

    .timeline-item.right {
        left: 0;
    }

    .timeline-item::after {
        left: 25px;
    }

    .timeline-item.left::after {
        left: 25px;
        right: auto;
    }

    .timeline-item .card {
        padding: 15px;
    }

    .timeline-item .card::after {
        display: none;
    }

    .timeline-item .card h3 {
        font-size: 1rem;
    }

    .timeline-item .card .role {
        font-size: 0.9rem;
    }

    .timeline-item .card .date {
        font-size: 0.85rem;
    }

    /* Contact Section */
    .contact {
        padding: 40px 0;
    }

    .contact h2 {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }

    .contact .container {
        padding: 0 15px;
    }

    .social-links {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .social-links a {
        width: 100%;
        padding: 12px;
    }

    .icon-wrapper {
        width: 35px;
        height: 35px;
    }

    .link-text {
        font-size: 0.9rem;
    }

    /* Footer */
    footer {
        padding: 15px 0;
    }

    .footer-content p {
        font-size: 0.8rem;
    }
}

/* Fix for devices in landscape mode */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 40px 0;
    }

    .timeline-item {
        margin: 15px 0;
    }

    .social-links {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

/* Responsive Improvements */
@media screen and (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

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

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 15px;
    }

    .timeline-item.left,
    .timeline-item.right {
        left: 0;
    }

    .social-links {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .social-links a {
        width: 100%;
    }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .timeline-item .card {
        padding: 20px;
    }
}

@media screen and (min-width: 1025px) {
    .container {
        max-width: 1140px;
        margin: 0 auto;
    }

    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

/* Fix for mobile navigation */
@media screen and (max-width: 480px) {
    .nav-links {
        gap: 15px;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

/* Add styling for the company badge */
.company-badge {
    background: rgba(52, 152, 219, 0.1);
    color: #2980b9;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 6px;
    display: inline-block;
    border: 1px solid rgba(52, 152, 219, 0.2);
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.company-badge:hover {
    background: rgba(52, 152, 219, 0.15);
    border-color: rgba(52, 152, 219, 0.3);
    transform: translateY(-1px);
}

/* Fortune 50 emphasis styling */
.company-badge.fortune-50 {
    background: #2980b9;
    color: white;
    border: 1px solid #2980b9;
}

.company-badge.fortune-50:hover {
    background: #3498db;
    border-color: #3498db;
}

/* Media company styling - using same blue palette */
.company-badge.media-giant {
    background: rgba(52, 152, 219, 0.08);
    color: #2980b9;
    border: 1px solid rgba(52, 152, 219, 0.15);
}

.company-badge.media-giant:hover {
    background: rgba(52, 152, 219, 0.12);
    border-color: rgba(52, 152, 219, 0.25);
    transform: translateY(-1px);
}

.company-badge.fortune-500 {
    background: rgba(52, 152, 219, 0.06);
    color: #2980b9;
    border: 1px solid rgba(52, 152, 219, 0.12);
}