/* Override styles for new design extracted from index.html */
body {
    overflow-x: hidden;
    background-color: #121212;
}

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-color: #0a0a0a;
    overflow: hidden;
}

.particles-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    z-index: 1;
}
        
/* Add animated network background effect as fallback */
.network-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://media.giphy.com/media/26BROrSHlmyzzHf3i/giphy.gif') center;
    background-size: cover;
    opacity: 0.15;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

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

.hero-text {
    color: #fff;
}

.hero-text h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #fff;
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-text h2 {
    font-size: 2.2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 30px;
}

.highlight {
    color: #ff6b00; /* Orange color similar to Sable */
}

.hero-image img {
    border-radius: 50%;
    border: 5px solid #ff6b00;
}

header {
    background-color: #121212;
}

.logo h1 {
    font-weight: 700;
    color: #ff6b00;
}

.nav-links a {
    font-weight: 500;
    color: #e0e0e0;
}

.nav-links a.active {
    color: #ff6b00;
}

.nav-links a::after {
    background-color: #ff6b00;
}

.social-links-hero {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-links-hero a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #222;
    color: white;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links-hero a:hover {
    background-color: #ff6b00;
    transform: translateY(-5px);
}

.btn.primary-btn {
    background-color: #ff6b00;
    border: none;
}

.btn.primary-btn:hover {
    background-color: #e05f00;
}

.chat-widget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #222;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
}

.chat-widget:hover {
    transform: scale(1.1);
}

.chat-widget i {
    color: #ff6b00;
    font-size: 24px;
}

.chat-message {
    position: absolute;
    bottom: 80px;
    left: 0;
    background-color: #222;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 250px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    color: #e0e0e0;
}

.chat-widget:hover .chat-message {
    opacity: 1;
    visibility: visible;
}
        
/* Dark mode specific styles */
.project-card {
    background-color: #1e1e1e;
}
        
.timeline-content {
    background-color: #1e1e1e;
}
        
.contact-form {
    background-color: #1e1e1e;
    padding: 30px;
    border-radius: 10px;
}
        
.contact-info {
    background-color: #1e1e1e;
    padding: 30px;
    border-radius: 10px;
}
        
.footer-content {
    color: #e0e0e0;
}
        
.footer-nav ul li a {
    color: #a0a0a0;
}
        
.footer-nav ul li a:hover {
    color: #ff6b00;
}
        
.footer-bottom {
    border-top: 1px solid #333;
}
        
/* Fix for project cards in dark mode */
.project-info p {
    color: #a0a0a0;
}
        
/* Scroll bar customization for dark theme */
::-webkit-scrollbar {
    width: 10px;
}
        
::-webkit-scrollbar-track {
    background: #121212;
}
        
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 5px;
}
        
::-webkit-scrollbar-thumb:hover {
    background: #ff6b00;
}

/* ===== MOBILE RESPONSIVE IMPROVEMENTS ===== */

/* Extra Small Devices (320px and down) */
@media screen and (max-width: 320px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }
            
    .hero-text h1 {
        font-size: 2.2rem;
        line-height: 1.1;
    }
            
    .hero-text h2 {
        font-size: 1.4rem;
    }
            
    .hero-text h3 {
        font-size: 1.2rem;
    }
            
    .section-header h2 {
        font-size: 1.8rem;
    }
            
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
            
    .hero-buttons .btn {
        width: 100%;
        padding: 15px 20px;
        font-size: 1rem;
    }
            
    .social-links-hero {
        justify-content: center;
        gap: 12px;
    }
            
    .social-links-hero a {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
            
    .nav-links {
        padding: 20px;
        top: 70px;
    }
            
    .nav-links li {
        margin: 15px 0;
    }
            
    .nav-links a {
        font-size: 1.1rem;
        padding: 12px 0;
    }
            
    .about-info {
        grid-template-columns: 1fr;
        gap: 15px;
    }
            
    .info-item {
        padding: 12px;
        font-size: 0.9rem;
    }
            
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
            
    .skill-item {
        padding: 15px 10px;
    }
            
    .skill-item h4 {
        font-size: 0.9rem;
    }
            
    .project-card {
        margin-bottom: 20px;
    }
            
    .project-info h3 {
        font-size: 1.2rem;
    }
            
    .project-info p {
        font-size: 0.9rem;
    }
            
    .project-tech {
        flex-wrap: wrap;
        gap: 8px;
    }
            
    .project-tech span {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
            
    .project-links {
        flex-direction: column;
        gap: 10px;
    }
            
    .project-links .btn {
        width: 100%;
        padding: 10px 15px;
        font-size: 0.9rem;
    }
            
    .contact-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
            
    .contact-info, .contact-form {
        padding: 20px;
    }
            
    .contact-item {
        padding: 15px;
        margin-bottom: 15px;
    }
            
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
            
    .form-group input,
    .form-group textarea {
        padding: 12px 15px;
        font-size: 1rem;
    }
            
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
            
    .footer-links {
        grid-template-columns: 1fr;
        gap: 20px;
    }
            
    .footer-nav ul {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
            
    .footer-nav ul li a {
        font-size: 0.9rem;
        padding: 8px 0;
    }
            
    .social-links {
        justify-content: center;
        gap: 15px;
    }
            
    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
            
    .chat-widget {
        width: 50px;
        height: 50px;
        bottom: 15px;
        left: 15px;
    }
            
    .chat-widget i {
        font-size: 20px;
    }
            
    .chat-message {
        width: 200px;
        padding: 12px;
        font-size: 0.9rem;
    }
            
    .scroll-top-btn {
        width: 45px;
        height: 45px;
        right: 15px;
        bottom: 15px;
    }
            
    .scroll-top-btn i {
        font-size: 18px;
    }
}

/* Small Devices (576px and down) */
@media screen and (max-width: 576px) {
    .hero-text h1 {
        font-size: 2.8rem;
    }
            
    .hero-text h2 {
        font-size: 1.6rem;
    }
            
    .hero-image {
        width: 200px;
        height: 200px;
        margin: 30px auto 0;
    }
            
    .hero-image img {
        width: 180px;
        height: 180px;
    }
            
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
            
    .about-image {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }
            
    .about-image img {
        width: 180px;
        height: 180px;
    }
            
    .about-info {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
            
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
            
    .edu-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
            
    .edu-image {
        width: 250px;
        height: 250px;
        margin: 0 auto;
    }
            
    .edu-image img {
        width: 220px;
        height: 220px;
    }
            
    .timeline-item {
        margin-bottom: 30px;
    }
            
    .timeline-content {
        padding: 20px;
        margin-left: 0;
        margin-top: 15px;
    }
            
    .timeline-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
            
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
            
    .project-image {
        height: 200px;
    }
            
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
            
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
            
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* Medium Devices (768px and down) */
@media screen and (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
            
    .hero-text {
        order: 1;
    }
            
    .hero-image {
        order: 2;
        width: 250px;
        height: 250px;
        margin: 0 auto;
    }
            
    .hero-image img {
        width: 220px;
        height: 220px;
    }
            
    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-color);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 50px 20px;
        transition: right 0.3s ease;
        z-index: 999;
    }
            
    .nav-links.active {
        right: 0;
    }
            
    .nav-links li {
        margin: 20px 0;
        opacity: 0;
        transform: translateX(50px);
        transition: all 0.3s ease;
    }
            
    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }
            
    .nav-links li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links li:nth-child(2) { transition-delay: 0.2s; }
    .nav-links li:nth-child(3) { transition-delay: 0.3s; }
    .nav-links li:nth-child(4) { transition-delay: 0.4s; }
    .nav-links li:nth-child(5) { transition-delay: 0.5s; }
    .nav-links li:nth-child(6) { transition-delay: 0.6s; }
    .nav-links li:nth-child(7) { transition-delay: 0.7s; }
            
    .nav-links a {
        font-size: 1.3rem;
        padding: 15px 0;
        display: block;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
    }
            
    .hamburger {
        display: block;
        cursor: pointer;
        z-index: 1000;
    }
            
    .hamburger div {
        width: 25px;
        height: 3px;
        background-color: var(--text-color);
        margin: 5px 0;
        transition: 0.3s;
    }
            
    .hamburger.active .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
            
    .hamburger.active .line2 {
        opacity: 0;
    }
            
    .hamburger.active .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
            
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
            
    .about-image {
        width: 280px;
        height: 280px;
        margin: 0 auto;
    }
            
    .about-image img {
        width: 250px;
        height: 250px;
    }
            
    .about-info {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
            
    .skills-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }
            
    .edu-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
            
    .edu-image {
        width: 300px;
        height: 300px;
        margin: 0 auto;
    }
            
    .edu-image img {
        width: 270px;
        height: 270px;
    }
            
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
            
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
            
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
            
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* Landscape Orientation Fixes */
@media screen and (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 20px 0;
    }
            
    .hero-content {
        gap: 20px;
    }
            
    .hero-text h1 {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }
            
    .hero-text h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
            
    .hero-image {
        width: 180px;
        height: 180px;
    }
            
    .hero-image img {
        width: 160px;
        height: 160px;
    }
            
    .social-links-hero {
        margin-top: 20px;
    }
            
    .hero-buttons {
        margin-top: 20px;
    }
            
    section {
        padding: 60px 0;
    }
            
    .section-header {
        margin-bottom: 40px;
    }
            
    .nav-links {
        padding: 30px 20px;
    }
            
    .nav-links li {
        margin: 15px 0;
    }
            
    .nav-links a {
        font-size: 1.1rem;
        padding: 10px 0;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .nav-links a,
    .btn,
    .skill-item,
    .project-card,
    .timeline-item,
    .contact-item,
    .social-links a,
    .scroll-top-btn,
    .chat-widget {
        transition: none;
    }
            
    .nav-links a:active,
    .btn:active,
    .skill-item:active,
    .project-card:active,
    .timeline-item:active,
    .contact-item:active,
    .social-links a:active,
    .scroll-top-btn:active,
    .chat-widget:active {
        transform: scale(0.98);
    }
            
    .hero-image::after,
    .project-image::after,
    .skill-item::before {
        display: none;
    }
            
    .floating-shapes {
        display: none;
    }
            
    .particles-background {
        display: none;
    }
}

/* High DPI Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-image img,
    .about-image img,
    .edu-image img,
    .project-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
            
    .floating-shapes,
    .particles-background {
        display: none;
    }
}

/* Focus Styles for Accessibility */
.nav-links a:focus,
.btn:focus,
.skill-item:focus,
.project-card:focus,
.contact-item:focus,
.social-links a:focus,
.scroll-top-btn:focus,
.chat-widget:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip to Content Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
}

.skip-link:focus {
    top: 6px;
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-color);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Error States */
.error {
    border-color: var(--error-color) !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2) !important;
}

.error-message {
    color: var(--error-color);
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Success States */
.success {
    border-color: var(--success-color) !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2) !important;
}

.success-message {
    color: var(--success-color);
    font-size: 0.9rem;
    margin-top: 5px;
}


