* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #181818;
    color: #fff;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

header {
    background: #181818;
    padding: 24px 0 0 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo, .footer-logo {
    color: #ff8000;
    font-weight: bold;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 16px;
    font-weight: 500;
    transition: color 0.2s;
}
nav a:hover {
    color: #ff8000;
}

/* ===== ACTIVE NAVIGATION STYLES ===== */
nav a.active-nav {
    color: #ff8000 !important;
    position: relative;
}

nav a.active-nav::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ff8000;
    animation: slideIn 0.3s ease;
}

.btn {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-size: 1rem;
}
.btn-primary {
    background: #ff8000;
    color: #fff;
}
.btn-primary:hover {
    background: #fff;
    color: #ff8000;
}
.btn-secondary {
    background: #232323;
    color: #ff8000;
    border: 1px solid #ff8000;
}
.btn-secondary:hover {
    background: #ff8000;
    color: #fff;
}

/* ===== ENHANCED HOVER EFFECTS ===== */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

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

.hero {
    background: #232323;
    padding: 40px 0 30px 0;
}
.hero-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}
.hero-text {
    flex: 1 1 300px;
    min-width: 250px;
}
.hero-img {
    flex: 0 0 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-img::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff8000, #ff6b00, #ff8000);
    animation: rotate 3s linear infinite;
    z-index: 1;
}

.hero-img img {
    width: 260px;
    height: 260px;
    object-fit: cover;
    border-radius: 50%;
    border: 8px solid #181818;
    box-shadow: 
        0 0 0 4px #ff8000,
        0 10px 30px rgba(255, 128, 0, 0.3),
        0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
    filter: brightness(1.1) contrast(1.1) saturate(1.1);
    animation: imageGlow 4s ease-in-out infinite;
}

.hero-img:hover img {
    transform: scale(1.05);
    box-shadow: 
        0 0 0 4px #ff8000,
        0 15px 40px rgba(255, 128, 0, 0.4),
        0 25px 80px rgba(0, 0, 0, 0.5);
    filter: brightness(1.2) contrast(1.2) saturate(1.2);
}
.greeting {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 0.1em;
}
.name {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0.1em 0 0.1em 0;
}
.title span {
    color: #ff8000;
    font-size: 1.8rem;
    font-weight: 700;
}
.social-links {
    margin: 14px 0 10px 0;
}
.social-links a {
    color: #fff;
    margin-right: 14px;
    font-size: 1.1rem;
    transition: color 0.2s;
}
.social-links a:hover {
    color: #ff8000;
}
.hero-actions {
    margin: 14px 0 14px 0;
}
.hero-actions .btn {
    margin-right: 10px;
    padding: 8px 20px;
    font-size: 0.9rem;
}
.hero-stats {
    display: flex;
    gap: 24px;
    margin-top: 14px;
}
.hero-stats div {
    text-align: center;
    color: #ff8000;
    font-weight: 700;
    font-size: 1rem;
}
.hero-stats span {
    font-size: 1.3rem;
    display: block;
}

.services {
    background: #181818;
    padding: 60px 0 40px 0;
}
.services h2 {
    text-align: center;
    color: #ff8000;
    margin-bottom: 32px;
}
.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}
.service-card {
    background: #232323;
    border-radius: 16px;
    padding: 32px 24px;
    width: 300px;
    text-align: center;
    color: #fff;
    box-shadow: 0 2px 16px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}
.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 128, 0, 0.15);
}
.service-card i {
    font-size: 2.5rem;
    color: #ff8000;
    margin-bottom: 16px;
}

.about {
    background: #232323;
    padding: 60px 0 40px 0;
}
.about-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}
.about-img {
    flex: 0 0 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.about-img::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff8000, #ff6b00, #ff8000);
    animation: rotate 6s linear infinite reverse;
    z-index: 1;
    opacity: 0.7;
}

.about-img img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid #181818;
    box-shadow: 
        0 0 0 3px #ff8000,
        0 8px 25px rgba(255, 128, 0, 0.3),
        0 15px 45px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
    filter: brightness(1.05) contrast(1.05) saturate(1.1);
}

.about-img:hover img {
    transform: scale(1.05);
    filter: brightness(1.15) contrast(1.15) saturate(1.2);
    box-shadow: 
        0 0 0 3px #ff8000,
        0 12px 35px rgba(255, 128, 0, 0.4),
        0 20px 60px rgba(0, 0, 0, 0.5);
}
.about-text {
    flex: 1 1 350px;
    min-width: 300px;
}
.about-text h2 {
    color: #ff8000;
    margin-bottom: 8px;
}
.about-desc {
    margin: 18px 0 18px 0;
    color: #ccc;
    line-height: 1.7;
}
.skills {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 32px;
}
.skill {
    text-align: center;
    color: #ff8000;
    font-size: 1.1rem;
}
.skill i {
    font-size: 2.2rem;
    margin-bottom: 8px;
    display: block;
}

.portfolio {
    background: #181818;
    padding: 60px 0 40px 0;
}
.portfolio h2 {
    text-align: center;
    color: #ff8000;
    margin-bottom: 32px;
}
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}
.portfolio-filters button {
    background: #232323;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.portfolio-filters button.active, .portfolio-filters button:hover {
    background: #ff8000;
    color: #fff;
}
.portfolio-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}
.portfolio-item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}
.portfolio-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}
.portfolio-info {
    padding: 16px;
    color: #fff;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.contact {
    background: #232323;
    padding: 60px 0 40px 0;
}
.contact h2 {
    text-align: center;
    color: #ff8000;
    margin-bottom: 32px;
}
.contact-form {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    position: relative;
    flex: 1 1 220px;
    min-width: 180px;
    margin-bottom: 20px;
}

.form-group:last-of-type {
    flex: 1 1 100%;
}

.contact-form input, .contact-form textarea {
    background: #181818;
    color: #fff;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 16px 12px 8px 12px;
    font-size: 1rem;
    width: 100%;
    resize: none;
    transition: all 0.3s ease;
    outline: none;
}

.floating-label {
    position: absolute;
    left: 12px;
    top: 16px;
    font-size: 1rem;
    color: #888;
    pointer-events: none;
    transition: all 0.3s ease;
    background: #181818;
    padding: 0 4px;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form input:not(:placeholder-shown),
.contact-form textarea:not(:placeholder-shown) {
    border-color: #ff8000;
    box-shadow: 0 0 10px rgba(255, 128, 0, 0.3);
}

.contact-form input:focus + .floating-label,
.contact-form textarea:focus + .floating-label,
.contact-form input:not(:placeholder-shown) + .floating-label,
.contact-form textarea:not(:placeholder-shown) + .floating-label {
    top: -8px;
    font-size: 0.85rem;
    color: #ff8000;
    background: #222;
}

.contact-form textarea {
    min-height: 120px;
    padding-top: 16px;
    resize: vertical;
}
.contact-form button {
    flex: 1 1 100%;
    max-width: 120px;
    margin: 0 auto;
}

footer {
    background: #181818;
    padding: 24px 0 12px 0;
    color: #fff;
    border-top: 1px solid #232323;
}
.footer-container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 20px;
    text-align: left;
}
.footer-logo {
    color: #ff8000;
    font-size: 1.1rem;
    font-weight: bold;
    margin-right: 24px;
}
.footer-social a {
    color: #fff;
    margin-right: 10px;
    font-size: 1rem;
    transition: color 0.2s;
}
.footer-social a:hover {
    color: #ff8000;
}
.footer-contact p {
    margin: 0 0 3px 0;
    color: #ccc;
    font-size: 0.85rem;
}
.footer-credit {
    color: #888;
    font-size: 0.8rem;
    margin-top: 8px;
}

/* ===== IMPROVED RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr 300px;
        gap: 40px;
    }
    
    .services-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .cert-item img {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        position: relative;
    }
    
    .header-controls {
        position: absolute;
        right: 0;
        top: 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 25px;
    }
    
    .hero-img {
        order: -1;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 20px;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-img {
        order: -1;
        margin-bottom: 30px;
    }
    
    .services-list {
        grid-template-columns: 1fr;
    }
    
    .portfolio-list {
        grid-template-columns: 1fr;
    }
    
    .portfolio-filters {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .portfolio-filters button {
        flex: 1;
        min-width: 120px;
    }
    
    .skills {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: left;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero h2 {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
    
    .skills {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .testimonials h2 {
        font-size: 2rem;
    }
    
    .testimonial-card {
        padding: 20px 15px;
    }
    
    .portfolio-filters button {
        min-width: 100px;
        font-size: 0.9rem;
    }
}

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

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

.portfolio-item {
    animation: fadeInUp 0.6s ease-out;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 128, 0, 0.2);
}

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

/* ===== LOADING IMPROVEMENTS ===== */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #181818;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #333;
    border-top: 3px solid #ff8000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

@keyframes imageGlow {
    0%, 100% { 
        box-shadow: 
            0 0 0 4px #ff8000,
            0 10px 30px rgba(255, 128, 0, 0.3),
            0 20px 60px rgba(0, 0, 0, 0.4);
    }
    50% { 
        box-shadow: 
            0 0 0 6px #ff6b00,
            0 15px 40px rgba(255, 128, 0, 0.5),
            0 25px 80px rgba(0, 0, 0, 0.6);
    }
}

/* ===== TYPING ANIMATION ===== */
.typing-effect {
    overflow: hidden;
    border-right: 3px solid #ff8000;
    white-space: nowrap;
    margin: 0 auto;
    animation: typing 3s steps(40, end), blink 0.75s step-end infinite;
}

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

@keyframes blink {
    0%, 50% { border-color: transparent }
    51%, 100% { border-color: #ff8000 }
}

/* ===== FLOATING ELEMENTS ===== */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    background: rgba(255, 128, 0, 0.1);
    border-radius: 50%;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* ===== ENHANCED TESTIMONIALS ===== */
.testimonial-card {
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: #ff8000;
    opacity: 0.3;
    font-family: serif;
}

.testimonial-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ff8000, transparent);
}

/* ===== SKILLS ANIMATION ===== */
.skill {
    position: relative;
    overflow: hidden;
}

.skill.animate .skill-progress {
    animation: fillProgress 2s ease-out forwards;
}

@keyframes fillProgress {
    from {
        width: 0%;
    }
    to {
        width: var(--progress);
    }
}

/* ===== SCROLL INDICATOR ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #ff8000, #ff6b35);
    z-index: 1000;
    transition: width 0.1s ease;
}

/* ===== ENHANCED LOADING ANIMATION ===== */
.loading-spinner {
    background: linear-gradient(45deg, #181818, #222);
}

.spinner {
    position: relative;
}

.spinner::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    border: 2px solid #ff8000;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0;
    }
}

/* ===== RESPONSIVE ENHANCEMENTS ===== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: #181818;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        z-index: 1000;
        border-left: 1px solid #333;
    }
    
    nav.active {
        right: 0;
    }
    
    nav a {
        margin: 20px 0;
        font-size: 1.2rem;
    }
    
    .nav-container .btn {
        display: none;
    }
    
    .header-controls {
        gap: 0.5rem;
    }
    
    .theme-toggle {
        width: 35px;
        height: 35px;
    }
    
    .testimonials {
        padding: 60px 0;
    }
    
    .testimonial-card {
        margin: 0 10px;
        padding: 30px 20px;
    }
    
    .testimonial-content p {
        font-size: 1rem;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
}

/* ===== THEME TOGGLE ===== */
.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: none;
    border: 2px solid #ff8000;
    color: #ff8000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: #ff8000;
    color: #181818;
    transform: scale(1.1);
}

/* ===== LIGHT THEME ===== */
body.light-theme {
    background: #ffffff;
    color: #333333;
}

body.light-theme header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body.light-theme .logo,
body.light-theme .footer-logo {
    color: #ff8000;
}

body.light-theme nav a {
    color: #333333;
}

body.light-theme .service-card,
body.light-theme .portfolio-item,
body.light-theme .testimonial-card {
    background: #f8f9fa;
    color: #333333;
}

/* ===== TECH STACK & CERTIFICATIONS ===== */
.tech-stack {
    padding: 100px 0;
    background: #222;
}

.tech-stack h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
    color: #ff8000;
}

/* ===== CERTIFICATIONS SECTION ===== */
.certifications {
    padding: 100px 0;
    background: #1a1a1a;
}

.certifications h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
    color: #ff8000;
}

.tech-categories {
    max-width: 1000px;
    margin: 0 auto;
}

.tech-category {
    display: none;
    animation: fadeInUp 0.6s ease-out;
}

.tech-category.active {
    display: block;
}

.tech-category h3 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.8rem;
    color: #ff8000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    background: #333;
    border-radius: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tech-item:hover {
    background: #444;
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 128, 0, 0.2);
}

.tech-item i {
    font-size: 2.5rem;
    color: #ff8000;
    margin-bottom: 15px;
}

.tech-item span {
    font-weight: 600;
    color: #fff;
    text-align: center;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.cert-item {
    display: flex;
    align-items: center;
    padding: 30px;
    background: #333;
    border-radius: 20px;
    transition: all 0.4s ease;
    cursor: pointer;
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.cert-item:nth-child(1) { animation-delay: 0.1s; }
.cert-item:nth-child(2) { animation-delay: 0.2s; }
.cert-item:nth-child(3) { animation-delay: 0.3s; }
.cert-item:nth-child(4) { animation-delay: 0.4s; }

.cert-item:hover {
    background: #444;
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 128, 0, 0.3);
    border-color: #ff8000;
}

.cert-item img {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    object-fit: cover;
    margin-right: 25px;
    transition: all 0.3s ease;
    border: 2px solid #555;
}

.cert-item:hover img {
    transform: scale(1.1);
    border-color: #ff8000;
    box-shadow: 0 0 20px rgba(255, 128, 0, 0.4);
}

.cert-info h4 {
    margin: 0 0 8px 0;
    color: #ff8000;
    font-size: 1.3rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.cert-item:hover .cert-info h4 {
    color: #fff;
}

.cert-info p {
    margin: 0;
    color: #ccc;
    font-size: 1rem;
    line-height: 1.4;
}

.cert-date {
    display: inline-block;
    background: linear-gradient(135deg, #ff8000, #ff6b00);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-top: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(255, 128, 0, 0.3);
}

.cert-item:hover .cert-date {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 128, 0, 0.5);
}

.tech-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.tech-tab {
    padding: 15px 30px;
    background: #333;
    border: none;
    border-radius: 25px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tech-tab:hover {
    background: #444;
}

.tech-tab.active {
    background: #ff8000;
    color: #000;
}

.tech-tab i {
    font-size: 1.2rem;
}

/* ===== ENHANCED CONTACT SECTION ===== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #333;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: #444;
    transform: translateX(10px);
}

.contact-item i {
    font-size: 1.5rem;
    color: #ff8000;
    width: 30px;
    text-align: center;
}

.contact-item h4 {
    margin: 0 0 5px 0;
    color: #ff8000;
    font-size: 1.1rem;
}

.contact-item p {
    margin: 0;
    color: #ccc;
}

/* Enhanced form button */
.contact-form .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.contact-form .btn i {
    transition: transform 0.3s ease;
}

.contact-form .btn:hover i {
    transform: translateX(5px);
}

/* Responsive contact section */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-item:hover {
        transform: translateY(-5px);
    }
}

/* ===== AI ASSISTANT CHAT STYLES ===== */
.ai-chat-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff8000, #ff6000);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 128, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.ai-chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(255, 128, 0, 0.4);
}

.ai-chat-button.hidden {
    opacity: 0;
    transform: scale(0);
    pointer-events: none;
}

.ai-chat-button i {
    color: white;
    font-size: 24px;
}

.chat-tooltip {
    position: absolute;
    right: 70px;
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    font-size: 14px;
}

.ai-chat-button:hover .chat-tooltip {
    opacity: 1;
    transform: translateX(0);
}

.chat-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border: 4px solid transparent;
    border-left-color: #333;
}

@keyframes pulse {
    0% { box-shadow: 0 4px 20px rgba(255, 128, 0, 0.3); }
    50% { box-shadow: 0 4px 20px rgba(255, 128, 0, 0.6); }
    100% { box-shadow: 0 4px 20px rgba(255, 128, 0, 0.3); }
}

.ai-chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    height: 500px;
    background: #232323;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    transform: translateY(20px) scale(0.9);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    overflow: hidden;
    border: 1px solid #404040;
}

.ai-chat-window.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: all;
}

.ai-chat-header {
    background: linear-gradient(135deg, #ff8000, #ff6000);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ai-chat-title {
    display: flex;
    align-items: center;
    color: white;
    font-weight: 600;
    gap: 10px;
}

.ai-chat-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.ai-chat-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.chat-title i {
    font-size: 18px;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background 0.2s;
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chat-messages {
    height: 320px;
    overflow-y: auto;
    padding: 16px;
    background: #181818;
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #2a2a2a;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #ff8000;
    border-radius: 3px;
}

.message {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

.user-message {
    align-items: flex-end;
}

.ai-message {
    align-items: flex-start;
}

.message-content {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 16px;
    word-wrap: break-word;
}

.user-message .message-content {
    background: #ff8000;
    color: white;
    border-bottom-right-radius: 4px;
}

.ai-message .message-content {
    background: #2a2a2a;
    color: #e0e0e0;
    border-bottom-left-radius: 4px;
}

.ai-message {
    align-items: flex-start;
    display: flex;
    gap: 10px;
}

.ai-message i {
    color: #ff8000;
    font-size: 1.2rem;
    margin-top: 12px;
}

.quick-questions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.quick-btn {
    background: #333;
    border: 1px solid #555;
    color: #fff;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.quick-btn:hover {
    background: #ff8000;
    border-color: #ff8000;
    color: #000;
    transform: translateY(-2px);
}

.message-content p {
    margin: 0;
    line-height: 1.4;
}

.message-time {
    font-size: 11px;
    color: #888;
    margin-top: 4px;
    opacity: 0.7;
}

.chat-suggestions {
    padding: 12px 16px;
    background: #1a1a1a;
    border-top: 1px solid #333;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.suggestion-btn {
    background: #2a2a2a;
    border: 1px solid #404040;
    color: #e0e0e0;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.suggestion-btn:hover {
    background: #ff8000;
    border-color: #ff8000;
    color: white;
}

.chat-input {
    padding: 16px;
    background: #232323;
    border-top: 1px solid #404040;
    display: flex;
    gap: 12px;
    align-items: center;
}

#chatInput {
    flex: 1;
    background: #1a1a1a;
    border: 1px solid #404040;
    color: white;
    padding: 12px 16px;
    border-radius: 24px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.2s;
}

#chatInput:focus {
    border-color: #ff8000;
}

#chatInput::placeholder {
    color: #888;
}

#chatSend {
    background: #ff8000;
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

#chatSend:hover {
    background: #ff6000;
    transform: scale(1.05);
}

#chatSend:active {
    transform: scale(0.95);
}

.chat-typing {
    padding: 16px;
    background: #181818;
    border-top: 1px solid #333;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #888;
    font-size: 14px;
}

.typing-indicator {
    display: flex;
    gap: 4px;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: #ff8000;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) { animation-delay: 0s; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.3; }
    30% { transform: translateY(-10px); opacity: 1; }
}

/* Responsive AI Chat */
@media (max-width: 768px) {
    .ai-chat-window {
        width: calc(100vw - 40px);
        height: calc(100vh - 120px);
        right: 20px;
        bottom: 80px;
    }

    .ai-chat-button {
        right: 20px;
        bottom: 20px;
    }

    .chat-messages {
        height: calc(100% - 200px);
    }
}

@media (max-width: 480px) {
    .ai-chat-window {
        width: calc(100vw - 20px);
        height: calc(100vh - 100px);
        right: 10px;
        bottom: 70px;
        border-radius: 12px;
    }

    .ai-chat-button {
        right: 15px;
        bottom: 15px;
        width: 50px;
        height: 50px;
    }

    .ai-chat-button i {
        font-size: 20px;
    }

    .chat-header {
        padding: 12px 16px;
    }

    .chat-messages {
        padding: 12px;
    }

    .message-content {
        max-width: 90%;
        padding: 10px 12px;
    }

    .chat-input-container {
        padding: 12px;
    }

    #chatInput {
        padding: 10px 14px;
        font-size: 16px; /* Prevent zoom on iOS */
    }

    #chatSend {
        width: 40px;
        height: 40px;
    }
}

/* ===== TECH STACK RESPONSIVE ===== */
@media (max-width: 768px) {
    .tech-stack h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }

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

    .tech-item {
        padding: 20px 15px;
    }

    .tech-item i {
        font-size: 2rem;
    }

    .cert-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .cert-item {
        padding: 25px;
        flex-direction: column;
        text-align: center;
    }

    .cert-item img {
        width: 70px;
        height: 70px;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .tech-tabs {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .tech-tab {
        padding: 12px 25px;
        width: auto;
        min-width: 200px;
        text-align: center;
        justify-content: center;
    }

    .tech-category h3 {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .certifications {
        padding: 60px 0;
    }

    .certifications h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .tech-stack {
        padding: 60px 0;
    }

    .tech-stack h2 {
        font-size: 1.8rem;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .tech-item {
        padding: 15px 10px;
    }

    .tech-item i {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .tech-item span {
        font-size: 0.9rem;
    }

    .cert-item {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }

    .cert-item img {
        margin: 0 0 15px 0;
    }

    .tech-tab {
        min-width: 150px;
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .tech-category h3 {
        font-size: 1.3rem;
        flex-direction: column;
        gap: 10px;
    }

    .certifications {
        padding: 60px 0;
    }

    .certifications h2 {
        font-size: 1.8rem;
    }

    .cert-date {
        font-size: 0.7rem;
        padding: 3px 10px;
    }
}
