@font-face {
    font-size:10px;
    font-family: "inconsolata";
    src: 
        url("fonts/Inconsolata-Bold.ttf") format("ttf");
}

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

/* Ensure all text is visible */
h1, h2, h3, h4, h5, h6, p, span, div, a, small, li {
    color: #E7E7E7;
}

a {
    color: #E7E7E7;
}

a:hover {
    color: #FFF;
}

body {
    font-family: 'inconsolata', monospace !important;
    font-weight: 700 !important;
    color: #E7E7E7;
    background-color: #171857 !important;
    background-image: url('../img/bg/bg-tech.png');
    background-repeat: repeat;
    background-size: auto 200px;
    background-attachment: fixed;
    animation: rainRight 10s linear infinite;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Language Selector */
.language-selector {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    gap: 0.5rem;
    background-color: rgba(23, 24, 87, 0.5);
    padding: 0.5rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.lang-btn {
    background-color: transparent;
    color: #E7E7E7;
    border: 2px solid transparent;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-family: 'inconsolata', monospace;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 50px;
}

.lang-btn:hover {
    background-color: rgba(231, 231, 231, 0.1);
    border-color: #E7E7E7;
}

.lang-btn.active {
    background-color: #E7E7E7;
    color: #171857;
    border-color: #E7E7E7;
}

/* Animations */
@keyframes rainRight {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 456px 200px;
    }
}

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

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    background-color: transparent;
}

/* Desktop Hero View */
.hero-content-desktop {
    display: block;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.hero-split {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.hero-image-side {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-image-desktop {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    object-fit: cover;
    animation: float 3s ease-in-out infinite;
}

.hero-text-side {
    text-align: left;
}

.hero-title-desktop {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #E7E7E7;
    line-height: 1.2;
}

.hero-subtitle-desktop {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #E7E7E7;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #E7E7E7;
    opacity: 0.9;
}

.contact-card-btn {
    background-color: rgba(231, 231, 231, 0.1);
    color: #E7E7E7;
    border: 2px solid #E7E7E7;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-family: 'inconsolata', monospace;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
}

.contact-card-btn:hover {
    background-color: #E7E7E7;
    color: #171857;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(231, 231, 231, 0.3);
}

.contact-card-btn i {
    margin-right: 0.5rem;
}

.scroll-link {
    display: block;
    margin-top: 2rem;
    color: #E7E7E7;
    text-decoration: none;
    font-size: 1rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.scroll-link:hover {
    opacity: 1;
    transform: translateX(5px);
}

.scroll-link i {
    margin-left: 0.5rem;
}

.tech-stack-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.tech-stack-hero {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
}

/* Mobile Hero View */
.hero-content-mobile {
    display: none;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

.profile-container {
    margin-bottom: 2rem;
    animation: float 3s ease-in-out infinite;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

.hero-title {
    font-size: 3rem;
    margin: 1rem 0;
    line-height: 1.2;
    color: #E7E7E7;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin: 1rem 0;
    opacity: 0.9;
    color: #E7E7E7;
}

.hero-role {
    font-size: 2rem;
    margin: 1rem 0;
    color: #E7E7E7;
}

.separator {
    height: 2px;
    background-color: #E7E7E7;
    border: none;
    width: 60%;
    opacity: 1;
    margin: 2rem auto;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
    align-items: center;
}

.contact-link {
    color: #E7E7E7;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-block;
}

.contact-link:hover {
    color: #FFF;
    background-color: rgba(23, 24, 87, 0.4);
    transform: translateX(5px);
}

.contact-link i {
    margin-right: 0.5rem;
}

.qr-container {
    margin: 2rem 0;
}

.qr-code {
    max-width: 150px;
    height: auto;
    border-radius: 10px;
    background-color: white;
    padding: 10px;
}

.hero-tagline {
    font-size: 1.3rem;
    margin: 2rem 0;
    opacity: 0.9;
}

.scroll-indicator {
    display: inline-block;
    margin-top: 2rem;
    color: #E7E7E7;
    font-size: 2rem;
    animation: pulse 2s infinite;
    text-decoration: none;
    cursor: pointer;
}

/* Content Sections */
.content-section {
    position: relative;
}

.bg-tech {
    /* Background already applied to body */
}

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

.section-content {
    animation: fadeInUp 0.8s ease-out;
}

.section-content .experience-blocks {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    width: 100%;
    color: #E7E7E7;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: #E7E7E7;
}

.section-description {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.about-card {
    background-color: rgba(23, 24, 87, 0.3);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.about-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #E7E7E7;
}

.tech-stack-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 10px;
}

/* Experience Section */
.experience-block {
    background-color: rgba(23, 24, 87, 0.3);
    padding: 2.5rem;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease;
    flex: 1 1 calc(50% - 1rem);
    min-width: 350px;
    max-width: 600px;
}

.experience-block:hover {
    transform: translateY(-5px);
}

.experience-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.company-logo {
    max-width: 80px;
    height: auto;
}

.company-logos {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.experience-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #E7E7E7;
    text-align: center;
}

.experience-period {
    font-size: 0.9rem;
    opacity: 0.8;
    color: #E7E7E7;
}

.experience-description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    color: #E7E7E7;
}

.experience-tasks {
    margin: 1.5rem 0;
}

.task-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #E7E7E7;
}

.task-item span {
    color: #E7E7E7;
}

.task-item i {
    color: #4CAF50;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: center;
}

.tech-stack img {
    max-width: 65px;
    height: auto;
    transition: transform 0.3s ease;
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.tech-stack img:hover {
    transform: scale(1.2);
}

/* Education Section */
.education-block {
    background-color: rgba(23, 24, 87, 0.3);
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(5px);
    max-width: 600px;
    margin: 0 auto;
}

.university-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 1.5rem;
}

.education-block h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #E7E7E7;
}

.education-period {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 1rem;
    color: #E7E7E7;
}

.education-block p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #E7E7E7;
}

.work-in-progress {
    opacity: 0.7;
    font-style: italic;
}

/* Tech Stack Categories */
.tech-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    margin-top: 3rem;
    justify-content: center;
}

.tech-category {
    background-color: rgba(23, 24, 87, 0.3);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    text-align: center;
    min-width: 300px;
    max-width: 400px;
    flex: 1 1 300px;
}

.tech-display {
    margin-bottom: 1.5rem;
    min-height: 280px;
}

.tech-icon-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 280px;
}

.tech-icon-display img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.tech-icon-display p {
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.9;
    color: #E7E7E7;
}

.category-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #E7E7E7;
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.tech-icon {
    max-width: 75px;
    height: auto;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 10px;
}

.tech-icon:hover {
    transform: scale(1.2);
    background-color: rgba(23, 24, 87, 0.4);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    position: relative;
    background-color: #171857 !important;
    background-image: url('../img/bg/bg-tech.png');
    background-repeat: repeat;
    background-size: auto 200px;
    background-attachment: fixed;
    margin: auto;
    padding: 0;
    width: 100%;
    max-width: 380px;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease-out;
}

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

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    color: #E7E7E7;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.close-modal:hover,
.close-modal:focus {
    background-color: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-card {
    padding: 0 2rem;
    text-align: center;
}

.modal-card .profile-container {
    display: none;
}

.modal-card .hero-title {
    font-size: 1.8rem;
    line-height: 1.3;
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
}

.modal-card .qr-container {
    margin-bottom: 2.5rem;
}

.modal-card .hero-subtitle {
    margin: 0.5rem 0;
    font-size: 1rem;
}

.modal-card .separator {
    margin: 0.5rem auto;
}

.modal-card .hero-role {
    margin: 0.5rem 0 1.5rem 0;
    font-size: 1.3rem;
}

.modal-card .hero-tagline {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.modal-card .contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    align-items: flex-start;
    width: fit-content;
    margin: 0 auto;
}

.modal-card .contact-link {
    width: 100%;
    display: block;
    text-align: left;
    padding: 0;
    border-radius: 0;
}

.modal-card .contact-link:hover {
    background-color: transparent;
    transform: none;
}

/* Contact Section */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

.lets-connect{
    margin-top: 4rem;
}
/* Responsive Design */
@media (max-width: 768px) {
    /* Language selector for mobile */
    .language-selector {
        top: 1rem;
        right: 1rem;
        padding: 0.4rem;
    }
    
    .lang-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        min-width: 45px;
    }
    
    /* Adapt desktop view for mobile */
    .hero-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .profile-image-desktop {
        width: 200px;
        height: 200px;
    }
    
    .hero-text-side {
        text-align: center;
    }
    
    .hero-title-desktop {
        font-size: 2rem;
    }
    
    .hero-subtitle-desktop {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
        text-align: center;
    }
    
    .contact-card-btn {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }
    
    .scroll-link {
        text-align: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .experience-header {
        align-items: center;
    }
    .tech-categories {
        grid-template-columns: 1fr;
    }
    
    
    .task-item {
        font-size: 0.9rem;
    }
    
    .contact-link {
        font-size: 1rem;
    }
    
    .modal {
        padding: 1rem;
    }
    
    .modal-content {
        width: 100%;
        max-height: calc(100vh - 2rem);
    }
    
    .modal-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.5rem;
    }
    
    .tech-grid {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    }
    
    .tech-icon {
        max-width: 50px;
    }
    
    .profile-image-desktop {
        width: 150px;
        height: 150px;
    }
    
    .hero-title-desktop {
        font-size: 1.8rem;
    }
    
    .hero-subtitle-desktop {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .contact-card-btn {
        font-size: 0.9rem;
        padding: 0.7rem 1.2rem;
    }
}

/* Smooth Transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Selection Color */
::selection {
    background-color: rgba(255, 255, 255, 0.2);
    color: #FFF;
}

