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

:root {
    --bg-dark: #1a1a1a;
    --bg-darker: #0f0f0f;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-cyan: #00f5ff;
    --accent-pink: #ff006e;
    --accent-gradient: linear-gradient(135deg, var(--accent-pink), var(--accent-cyan));
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    display: flex;
    overflow-x: hidden;
    position: relative;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(0, 245, 255, 0.1);
    border: 2px solid var(--accent-cyan);
    border-radius: 8px;
    width: 50px;
    height: 50px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.mobile-menu-toggle:hover {
    background: rgba(0, 245, 255, 0.2);
    border-color: var(--accent-pink);
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--accent-cyan);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
    background: var(--accent-pink);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
    background: var(--accent-pink);
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: var(--bg-darker);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.logo {
    text-align: center;
    margin-bottom: 60px;
}

.logo-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 3px solid rgba(0, 245, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 245, 255, 0.3);
    transition: all 0.3s ease;
}

.logo-icon:hover {
    border-color: rgba(255, 0, 110, 0.5);
    box-shadow: 0 4px 16px rgba(255, 0, 110, 0.4);
    transform: scale(1.05);
}

.logo h1 {
    font-size: 28px;
    margin-bottom: 5px;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
}

.location {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 8px;
}

.nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: auto;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--accent-cyan);
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
}

.social-links a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-cyan);
}

.scroll-indicator {
    text-align: center;
    color: var(--text-secondary);
    font-size: 12px;
}

.scroll-arrow {
    animation: bounce 2s infinite;
    margin-top: 5px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Main Content */
.main-content {
    margin-left: 280px;
    width: calc(100% - 280px);
    min-height: 100vh;
}

.section {
    min-height: auto;
    padding: 60px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    background: rgba(255, 255, 255, 0.02);
}

.hero-content {
    max-width: 620px;
    position: relative;
    z-index: 2;
    margin-left: 0;
    padding-left: 0;
    padding-right: 40px;
}

.greeting {
    color: var(--text-secondary);
    font-size: 16px;
    font-family: 'Courier New', monospace;
    display: block;
    margin: 10px 0;
}

.hero-title {
    font-size: 68px;
    line-height: 1.15;
    margin: 20px 0;
    font-weight: 700;
}

.hero-title .nowrap {
    white-space: nowrap;
}

.highlight {
    color: var(--accent-pink);
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 24px;
    margin: 20px 0 35px;
    line-height: 1.4;
    max-width: 500px;
}

.btn-primary {
    display: inline-block;
    padding: 18px 48px;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.15), rgba(255, 0, 110, 0.15));
    color: var(--accent-cyan);
    border: 2px solid var(--accent-cyan);
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.25), rgba(255, 0, 110, 0.25));
    border-color: var(--accent-pink);
    color: var(--accent-pink);
    box-shadow: 0 6px 20px rgba(0, 245, 255, 0.4),
                0 6px 20px rgba(255, 0, 110, 0.3);
}

/* Hero Image Area */
.hero-image {
    position: absolute;
    right: 3%;
    top: 50%;
    transform: translateY(-50%);
    width: 520px;
    height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    background: var(--accent-gradient);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: pulse 4s ease-in-out infinite;
}

.profile-pic {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(0, 245, 255, 0.3);
    box-shadow: 0 0 40px rgba(0, 245, 255, 0.4),
                0 0 80px rgba(255, 0, 110, 0.3);
    z-index: 1;
    animation: profileGlow 3s ease-in-out infinite;
    backdrop-filter: brightness(1.1);
}

@keyframes profileGlow {
    0%, 100% {
        box-shadow: 0 0 40px rgba(0, 245, 255, 0.4),
                    0 0 80px rgba(255, 0, 110, 0.3);
        border-color: rgba(0, 245, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 60px rgba(0, 245, 255, 0.6),
                    0 0 100px rgba(255, 0, 110, 0.4);
        border-color: rgba(255, 0, 110, 0.4);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.2;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

.floating-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    opacity: 0.75;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 245, 255, 0.2)) brightness(1.1) saturate(1.2);
    z-index: 2;
}

.floating-icon:hover {
    transform: scale(1.3) rotate(15deg) !important;
    opacity: 1;
    filter: drop-shadow(0 8px 20px rgba(0, 245, 255, 0.6)) brightness(1.3) saturate(1.4);
}

/* Specific icon color adjustments for dark theme */
.icon-9 {
    bottom: 25%;
    left: 7%;
    animation: float 5.3s ease-in-out infinite 0.5s, orbit9 8s linear infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 245, 255, 0.2)) brightness(0) invert(1) brightness(1.1);
}

.icon-9:hover {
    filter: drop-shadow(0 8px 20px rgba(0, 245, 255, 0.6)) brightness(0) invert(1) brightness(1.3);
}

.icon-1 {
    top: 0%;
    left: 50%;
    transform: translateX(-50%);
    animation: float 6s ease-in-out infinite, orbit1 8s linear infinite;
}

.icon-2 {
    top: 7%;
    right: 20%;
    animation: float 5s ease-in-out infinite 1s, orbit2 8s linear infinite;
}

.icon-3 {
    top: 25%;
    right: 7%;
    animation: float 7s ease-in-out infinite 2s, orbit3 8s linear infinite;
}

.icon-4 {
    top: 50%;
    right: 0%;
    transform: translateY(-50%);
    animation: float 6s ease-in-out infinite 3s, orbit4 8s linear infinite;
}

.icon-5 {
    bottom: 25%;
    right: 7%;
    animation: float 5.5s ease-in-out infinite 1.5s, orbit5 8s linear infinite;
}

.icon-6 {
    bottom: 7%;
    right: 20%;
    animation: float 6.5s ease-in-out infinite 2.5s, orbit6 8s linear infinite;
}

.icon-7 {
    bottom: 0%;
    left: 50%;
    transform: translateX(-50%);
    animation: float 5.8s ease-in-out infinite 1.2s, orbit7 8s linear infinite;
}

.icon-8 {
    bottom: 7%;
    left: 20%;
    animation: float 6.2s ease-in-out infinite 1.8s, orbit8 8s linear infinite;
}

.icon-10 {
    top: 50%;
    left: 0%;
    transform: translateY(-50%);
    animation: float 6.8s ease-in-out infinite 2.2s, orbit10 8s linear infinite;
}

.icon-11 {
    top: 25%;
    left: 7%;
    animation: float 5.6s ease-in-out infinite 1.1s, orbit11 8s linear infinite;
}

.icon-12 {
    top: 7%;
    left: 20%;
    animation: float 6.3s ease-in-out infinite 2.8s, orbit12 8s linear infinite;
}

@keyframes orbit1 {
    0%, 100% { transform: translate(-50%, 0) rotate(0deg); }
    50% { transform: translate(-50%, -10px) rotate(5deg); }
}

@keyframes orbit2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(5px, 0) rotate(-5deg); }
}

@keyframes orbit3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(10px, 0) rotate(5deg); }
}

@keyframes orbit4 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(0, 5px) rotate(-5deg); }
}

@keyframes orbit5 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(0, 5px) rotate(5deg); }
}

@keyframes orbit6 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-10px, 0) rotate(-5deg); }
}

@keyframes orbit7 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-8px, -5px) rotate(5deg); }
}

@keyframes orbit8 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-5px, -8px) rotate(-5deg); }
}

@keyframes orbit9 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(8px, -5px) rotate(5deg); }
}

@keyframes orbit10 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(8px, 5px) rotate(-5deg); }
}

@keyframes orbit11 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-8px, 5px) rotate(5deg); }
}

@keyframes orbit12 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-5px, -8px) rotate(-5deg); }
}

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

/* Section Title */
.section-title {
    font-size: 48px;
    margin-bottom: 40px;
    text-align: center;
}

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

.expertise-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px 25px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.expertise-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-cyan);
    transform: translateY(-5px);
}

.expertise-icon {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: rgba(0, 245, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent-cyan);
}

.expertise-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.expertise-card > p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 14px;
}

.tech-stack {
    margin-top: 15px;
}

.tech-label {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
    display: block;
    margin-bottom: 10px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: rgba(0, 245, 255, 0.1);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

/* Tech Blogs Section */
#blogs {
    background: rgba(255, 255, 255, 0.02);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 16px;
    margin-top: -20px;
    margin-bottom: 40px;
}

.blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Timeline Career History */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    margin-bottom: 40px;
    align-items: center;
}

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

.timeline-item.left .timeline-content {
    grid-column: 1;
    text-align: right;
}

.timeline-item.left .timeline-middle {
    grid-column: 2;
}

.timeline-item.right .timeline-content {
    grid-column: 3;
    text-align: left;
}

.timeline-item.right .timeline-middle {
    grid-column: 2;
}

.timeline-middle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 2;
}

.timeline-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
}

.timeline-date {
    color: var(--text-secondary);
    font-size: 14px;
    white-space: nowrap;
    font-weight: 500;
}

.timeline-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.timeline-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-cyan);
    transform: scale(1.02);
}

.timeline-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--accent-pink);
}

.timeline-role {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 16px;
}

.timeline-location {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
}

.timeline-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 14px;
}

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

.cert-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 35px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.cert-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-cyan);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.2);
}

.cert-logo {
    font-size: 56px;
    margin-bottom: 20px;
}

.cert-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.cert-issuer {
    color: var(--accent-pink);
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 10px;
}

.cert-date {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
}

.cert-id {
    color: var(--text-secondary);
    font-size: 13px;
    font-family: 'Courier New', monospace;
}

/* Certifications Section */
#certifications {
    background: rgba(255, 255, 255, 0.02);
}

/* Contact Section */
.contact-text {
    text-align: center;
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* New Contact Form */
.contact-form-new {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.contact-form-new input,
.contact-form-new textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 15px 20px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.contact-form-new input::placeholder,
.contact-form-new textarea::placeholder {
    color: var(--text-secondary);
}

.contact-form-new input:focus,
.contact-form-new textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    background: rgba(255, 255, 255, 0.05);
}

.contact-form-new textarea {
    resize: vertical;
    grid-column: 1 / -1;
}

.btn-send {
    background: var(--accent-cyan);
    color: var(--bg-dark);
    border: none;
    padding: 12px 35px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    letter-spacing: 1px;
}

.btn-send:hover {
    background: rgba(0, 245, 255, 0.9);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.4);
    transform: translateX(3px);
}

/* Footer */
.footer {
    background: var(--bg-darker);
    padding: 40px 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer p {
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-cyan);
}

/* Responsive Design */

/* Large Desktops and up */
@media (max-width: 1400px) {
    .hero-title {
        font-size: 75px;
    }
    
    .hero-image {
        right: 5%;
        width: 550px;
        height: 550px;
    }
    
    .profile-pic {
        width: 320px;
        height: 320px;
    }
}

/* Laptops and smaller desktops */
@media (max-width: 1200px) {
    .section {
        padding: 50px 50px;
    }
    
    .hero-title {
        font-size: 65px;
    }
    
    .hero-subtitle {
        font-size: 22px;
    }
    
    .hero-image {
        width: 500px;
        height: 500px;
    }
    
    .profile-pic {
        width: 280px;
        height: 280px;
    }
    
    .floating-icon {
        width: 55px;
        height: 55px;
    }
    
    .expertise-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .blogs-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

/* Tablets and smaller laptops */
@media (max-width: 1024px) {
    .sidebar {
        width: 220px;
        padding: 30px 15px;
    }

    .main-content {
        margin-left: 220px;
        width: calc(100% - 220px);
    }

    .section {
        padding: 45px 40px;
    }
    
    .hero {
        padding: 60px 40px;
    }

    .hero-image {
        width: 400px;
        height: 400px;
        right: 2%;
    }
    
    .profile-pic {
        width: 240px;
        height: 240px;
    }
    
    .floating-icon {
        width: 45px;
        height: 45px;
    }

    .hero-title {
        font-size: 52px;
    }
    
    .hero-content {
        max-width: 500px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .btn-primary {
        padding: 15px 35px;
        font-size: 16px;
    }
    
    .section-title {
        font-size: 42px;
    }
    
    .logo h1 {
        font-size: 24px;
    }
    
    .expertise-card h3 {
        font-size: 20px;
    }
}

/* Mobile and Tablet Portrait */
@media (max-width: 768px) {
    body {
        flex-direction: column;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }

    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        width: 280px;
        height: 100vh;
        padding: 30px 20px;
        transition: left 0.3s ease;
        z-index: 999;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    }
    
    .sidebar.active {
        left: 0;
    }

    .nav {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-link {
        width: 100%;
        text-align: left;
    }

    .scroll-indicator {
        display: none;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .section {
        padding: 50px 25px;
        min-height: auto;
    }
    
    .hero {
        padding: 80px 25px 50px;
        min-height: 80vh;
    }

    .hero-image {
        display: none;
    }
    
    .hero-content {
        max-width: 100%;
        padding-right: 0;
    }

    .hero-title {
        font-size: 48px;
        line-height: 1.15;
    }
    
    .hero-title .nowrap {
        white-space: normal;
    }
    
    .hero-subtitle {
        font-size: 18px;
        margin: 15px 0 30px;
    }
    
    .btn-primary {
        padding: 14px 32px;
        font-size: 16px;
    }

    .section-title {
        font-size: 36px;
        margin-bottom: 35px;
    }
    
    .section-subtitle {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .expertise-grid,
    .certifications-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .expertise-card,
    .cert-card {
        padding: 25px 20px;
    }
    
    .blogs-grid {
        grid-template-columns: 1fr;
    }
    
    /* Mobile Contact Form */
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contact-text {
        font-size: 16px;
        margin-bottom: 35px;
    }
    
    .contact-form-new input,
    .contact-form-new textarea {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    /* Mobile Timeline */
    .timeline::before {
        left: 25px;
    }
    
    .timeline-item {
        grid-template-columns: auto 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .timeline-item.left .timeline-content,
    .timeline-item.right .timeline-content {
        grid-column: 2;
        text-align: left;
    }
    
    .timeline-item.left .timeline-middle,
    .timeline-item.right .timeline-middle {
        grid-column: 1;
        grid-row: 1;
    }
    
    .timeline-middle {
        flex-direction: column-reverse;
    }
    
    .timeline-icon {
        width: 50px;
        height: 50px;
    }
    
    .timeline-date {
        writing-mode: vertical-lr;
        font-size: 11px;
    }
    
    .timeline-card {
        padding: 20px;
    }
    
    .timeline-card h3 {
        font-size: 18px;
    }
    
    .timeline-role {
        font-size: 15px;
    }
    
    .timeline-location,
    .timeline-desc {
        font-size: 13px;
    }

    .footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 40px 25px;
    }
    
    .footer-links {
        gap: 20px;
    }
    
    /* Modal adjustments */
    .modal-content {
        width: 95%;
        padding: 30px 20px;
        margin: 10% auto;
    }
    
    .modal-content h2 {
        font-size: 26px;
    }
    
    .blog-card {
        padding: 20px;
    }
    
    .blog-card h3 {
        font-size: 18px;
    }
}

/* Small Mobile Phones */
@media (max-width: 480px) {
    .hero {
        padding: 70px 20px 40px;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-title .nowrap {
        white-space: normal;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .btn-primary {
        padding: 12px 28px;
        font-size: 15px;
        width: 100%;
        text-align: center;
    }
    
    .section {
        padding: 40px 20px;
    }
    
    .section-title {
        font-size: 30px;
        margin-bottom: 30px;
    }
    
    .logo-icon {
        width: 70px;
        height: 70px;
    }
    
    .logo h1 {
        font-size: 22px;
    }
    
    .subtitle {
        font-size: 14px;
    }
    
    .expertise-card h3,
    .cert-card h3 {
        font-size: 18px;
    }
    
    .expertise-card > p,
    .timeline-desc {
        font-size: 13px;
    }
    
    .tech-tags {
        gap: 6px;
    }
    
    .tech-tag {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .cert-logo {
        font-size: 48px;
    }
    
    .timeline-card {
        padding: 18px;
    }
    
    .timeline-icon {
        width: 45px;
        height: 45px;
    }
    
    .modal-content {
        padding: 25px 15px;
    }
    
    .modal-content h2 {
        font-size: 22px;
    }
}

/* Very Small Phones */
@media (max-width: 360px) {
    .hero-title {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .mobile-menu-toggle {
        width: 45px;
        height: 45px;
        top: 15px;
        right: 15px;
    }
    
    .mobile-menu-toggle span {
        width: 22px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: var(--accent-cyan);
    color: var(--bg-dark);
}

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

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

/* Initial hidden state for animated elements - only when JS is ready */
.animate-ready .expertise-card,
.animate-ready .timeline-card,
.animate-ready .cert-card,
.animate-ready .section-title,
.animate-ready .contact-form-new {
    opacity: 0;
    transform: translateY(30px);
}

/* Animated state */
.expertise-card.animate-in,
.timeline-card.animate-in,
.cert-card.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

.section-title.animate-in {
    animation: fadeInScale 0.8s ease forwards;
}

.contact-form-new.animate-in {
    animation: fadeInUp 0.8s ease forwards;
}

/* Medium Blogs Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    margin: 5% auto;
    padding: 40px;
    border: 2px solid rgba(0, 245, 255, 0.3);
    border-radius: 20px;
    width: 90%;
    max-width: 900px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 245, 255, 0.2);
}

.modal-content h2 {
    color: var(--accent-cyan);
    margin-bottom: 30px;
    font-size: 32px;
    text-align: center;
}

.modal-close {
    color: var(--text-secondary);
    float: right;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    margin-top: -10px;
}

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

.blogs-container {
    display: grid;
    gap: 20px;
    margin-top: 30px;
}

.loading,
.no-blogs {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px;
    font-size: 18px;
}

.blog-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.blog-card:hover {
    background: rgba(0, 245, 255, 0.05);
    border-color: var(--accent-cyan);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.2);
}

.blog-card h3 {
    color: var(--text-primary);
    font-size: 20px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-date {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 15px;
}

.blog-link {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.blog-link:hover {
    color: var(--accent-pink);
    gap: 10px;
}

/* Modal scrollbar */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--accent-cyan);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--accent-pink);
}
