:root {
    --primary-color: #2563EB;      
    --secondary-color: #38BDF8;   
    --dark-bg: #0F172A;          
    --light-bg: #1E293B;         
    --text-dark: #F1F5F9;         
    --text-light: #94A3B8;  
}    

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

body {
    font-family: 'raleway', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    background-color: #0F172A;     
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    backdrop-filter: blur(20px) saturate(180%);
    background: rgba(15, 23, 42, 0.85) !important;   
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000;
    transform: translateY(-100%);
    padding: 15px 0;
}

.navbar.show {
    transform: translateY(0);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Brand styling */
.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    background: linear-gradient(135deg, #2563EB, #38BDF8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-brand::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: linear-gradient(135deg, #2563EB, #38BDF8); 
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-brand:hover::after {
    width: 100%;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

/* Navigation links */
.nav-link {
    font-weight: 500;
    color: #F1F5F9 !important;
    position: relative;
    padding: 8px 16px !important;
    margin: 0 5px;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2563EB, #38BDF8);
    transition: all 0.4s ease;
    z-index: -1;
    border-radius: 25px;
}

.nav-link:hover {
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.nav-link:hover::before {
    left: 0;
}

/* Active link styling */
.nav-link.active {
    background: linear-gradient(135deg, #2563EB, #38BDF8);
    color: white !important;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Mobile toggle button */
.navbar-toggler {
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    background: linear-gradient(135deg, #2563EB, #38BDF8);
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Responsive behavior */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(20px);
        border-radius: 15px;
        margin-top: 15px;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    
    .nav-link {
        margin: 5px 0;
        text-align: center;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
}

/* Mobile specific navbar fixes */
@media (max-width: 768px) {
    .navbar {
        padding: 10px 0;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .navbar-brand {
        font-size: 1.1rem;
    }
}

/* Scroll progress indicator */
.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(135deg, #2563EB, #38BDF8);
    width: var(--scroll-progress, 0%);
    transition: width 0.1s ease;
}

/* Glass morphism enhancement */
@supports (backdrop-filter: blur(20px)) {
    .navbar {
        background: rgba(15, 23, 42, 0.8);
        border: 1px solid rgba(37, 99, 235, 0.18);
    }
}

/* Hover effects for entire navbar */
.navbar:hover {
    backdrop-filter: blur(25px) saturate(200%);
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-image: url("img/home-bg2.png");
    background-position: center;
    background-size: cover; 
    background-repeat: no-repeat; 
    width: 100%; 
    padding: 0;
    justify-content: center;
    background-attachment: fixed;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center !important;
    padding: 0 15px;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh; 
}

.hero .row {
    justify-content: center;
    width: 100%;
}

.hero-img {
    display: none;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #F1F5F9;
    margin-bottom: 1rem;
}

.hero .lead {
    font-size: 20px;
    font-weight: bold;
    color: #2563EB;
    margin-bottom: 2rem;
}

.btn-custom {
    background: #2563EB;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    margin: 0 10px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-custom:hover {
    background: #38BDF8;
    color: #0F172A;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Mobile Hero Section */
@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
        padding: 80px 0 60px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero .lead {
        font-size: 18px;
        margin-bottom: 1.5rem;
    }
    
    .btn-custom {
        padding: 10px 25px;
        margin: 5px;
        font-size: 14px;
        display: block;
        max-width: 200px;
        margin: 10px auto;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .lead {
        font-size: 16px;
    }
    
    .btn-custom {
        padding: 8px 20px;
        font-size: 13px;
    }
}

/* Section Styling */
.section {
    padding: 80px 0;
    background-color: #0F172A;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #2563EB, #38BDF8);
    border-radius: 2px;
}

/* Mobile Section Styling */
@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
}

/* About Section */
.about-card {
    background: #1E293B;
    color: #F1F5F9;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.about-card:hover {
    transform: translateY(-10px);
}

.info-item {
    margin-bottom: 20px;
}

/* Mobile About Section */
@media (max-width: 768px) {
    .about-card {
        padding: 25px;
        margin: 0 15px;
    }
    
    .about-card p {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .info-item {
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .about-card {
        padding: 20px;
        border-radius: 15px;
    }
    
    .about-card p {
        font-size: 14px;
    }
}

/* Skills Section */
.skill-item {
    background: #1E293B;  
    color: #F1F5F9;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    height: 100%;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.2);
}

.skill-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.skill-item h4 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.skill-item p {
    font-size: 14px;
    line-height: 1.6;
}

/* Mobile Skills Section */
@media (max-width: 768px) {
    .skill-item {
        padding: 25px 20px;
        margin-bottom: 20px;
    }
    
    .skill-icon {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .skill-item h4 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .skill-item p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .skill-item {
        padding: 20px 15px;
    }
    
    .skill-icon {
        font-size: 2rem;
    }
    
    .skill-item h4 {
        font-size: 1.1rem;
    }
}

/* Download Resume Button */
.text-center {
    text-align: center;
}

.btn-success {
    background: #2563EB;
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-success:hover {
    background: #38BDF8;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

/* Mobile Resume Button */
@media (max-width: 768px) {
    .text-center {
        margin: 30px 0;
    }
    
    .btn-success {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Projects Section */
.project-card {
    background: #1E293B;  
    color: #F1F5F9;  
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(99, 102, 241, 0.2);
}

.project-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-img {
    transform: scale(1.1);
}

.project-content {
    padding: 30px;
}

.project-content h4 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.project-content p {
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 14px;
}

.project-links a {
    color: var(--primary-color);
    text-decoration: none;
    margin-right: 15px;
    font-weight: 500;
    font-size: 14px;
}

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

/* Mobile Projects Section */
@media (max-width: 768px) {
    .project-card {
        margin-bottom: 25px;
        border-radius: 15px;
    }
    
    .project-img {
        height: 200px;
    }
    
    .project-content {
        padding: 20px;
    }
    
    .project-content h4 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .project-content p {
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    .project-links a {
        font-size: 13px;
        margin-right: 10px;
    }
}

@media (max-width: 480px) {
    .project-content {
        padding: 15px;
    }
    
    .project-img {
        height: 180px;
    }
    
    .project-content h4 {
        font-size: 1.1rem;
    }
    
    .project-content p {
        font-size: 12px;
    }
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: #0F172A;
}

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

.contact .section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #F1F5F9;
    font-weight: 300;
}

.contact .row {
    display: flex;
    margin: 0 -15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 0;
    overflow: hidden;
}

.contact .col-lg-4 {
    flex: 1;
    padding: 0;
    margin-bottom: 0;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 40px 30px;
    color: white;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    height: 100%;
    min-height: 200px;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Individual background colors */
.contact .col-lg-4:nth-child(1) .contact-item {
    background: linear-gradient(135deg, #4267B2, #365899);
}

.contact .col-lg-4:nth-child(2) .contact-item {
    background: linear-gradient(135deg, #333, #24292e);
}

.contact .col-lg-4:nth-child(3) .contact-item {
    background: linear-gradient(135deg, #0077B5, #005885);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 24px;
    color: white;
}

.contact-item h5 {
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    opacity: 0.9;
    color: white;
}

.contact-item p {
    font-size: 20px;
    font-weight: 300;
    letter-spacing: 0.5px;
    opacity: 0.95;
    color: white;
    margin: 0;
}

.contact-item p a {
    color: white;
    text-decoration: none;
}

.contact-item p a:hover {
    text-decoration: underline;
}

/* Mobile Contact Section */
@media (max-width: 768px) {
    .contact {
        padding: 60px 0;
    }
    
    .contact .row {
        flex-direction: column;
        margin: 0 20px;
    }
    
    .contact .col-lg-4 {
        flex: none;
        width: 100%;
    }
    
    .contact-item {
        padding: 30px 25px;
        min-height: 150px;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        margin-right: 15px;
    }
    
    .contact-icon i {
        font-size: 20px;
    }
    
    .contact-item h5 {
        font-size: 14px;
    }
    
    .contact-item p {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .contact .row {
        margin: 0 10px;
    }
    
    .contact-item {
        padding: 25px 20px;
        min-height: 130px;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
        margin-right: 12px;
    }
    
    .contact-icon i {
        font-size: 18px;
    }
    
    .contact-item h5 {
        font-size: 13px;
    }
    
    .contact-item p {
        font-size: 16px;
    }
}

/* Contact Form Section */
.tm-contact {
    padding: 80px 0;
    background-color: #0F172A;
}

.tm-contact .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.tm-contact .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.tm-contact [class*="col-"] {
    padding: 0 15px;
    margin-bottom: 20px;
}

.tm-contact .col-md-12 {
    width: 100%;
}

.tm-contact .col-md-10 {
    width: 83.33%;
}

.tm-contact .col-md-6 {
    width: 50%;
}

.tm-contact .col-md-1 {
    width: 8.33%;
}

.tm-contact .col-md-offset-2 {
    margin-left: 16.66%;
}

.tm-contact .col-md-8 {
    width: 66.66%;
}

/* Title Styles */
.tm-contact .title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #F1F5F9;
    font-weight: 300;
}

.tm-contact .title strong {
    font-weight: 600;
}

.tm-contact hr {
    border: none;
    height: 2px;
    background: #2563EB;
    margin: 0 auto 50px;
    width: 60px;
}

/* Form Styles */
.tm-contact form {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.tm-contact .form-control {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    background-color: #1E293B;  
    color: #F1F5F9;            
    border: 1px solid #334155; 
    font-size: 16px;
    font-family: inherit;
    border-radius: 5px;
}

.tm-contact .form-control:hover {
    background-color: #2563EB;
}

.tm-contact .form-control:focus {
    outline: none;
    border-color: #2563EB;
    background-color: #1E293B;
}

.tm-contact .form-control::placeholder {
    color: #94A3B8;
}

.tm-contact textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.tm-contact input[type="submit"] {
    background: #2563EB;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
}

.tm-contact input[type="submit"]:hover {
    background: #38BDF8;
}

/* Copyright */
.tm-contact p {
    text-align: center;
    margin-top: 40px;
    color: #94A3B8;
    font-size: 14px;
}

/* Mobile Contact Form */
@media (max-width: 768px) {
    .tm-contact {
        padding: 60px 0;
    }
    
    .tm-contact .title {
        font-size: 2rem;
    }
    
    .tm-contact .col-md-6,
    .tm-contact .col-md-10,
    .tm-contact .col-md-8,
    .tm-contact .col-md-12 {
        width: 100%;
    }
    
    .tm-contact .col-md-1 {
        display: none;
    }
    
    .tm-contact .col-md-offset-2 {
        margin-left: 0;
    }
    
    .tm-contact .form-control {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .tm-contact form {
        margin: 0;
    }
    
    .tm-contact [class*="col-"] {
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .tm-contact .title {
        font-size: 1.8rem;
    }
    
    .tm-contact .form-control {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .tm-contact [class*="col-"] {
        padding: 0 5px;
    }
}

/* General Mobile Optimizations */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .row {
        margin-left: -10px;
        margin-right: -10px;
    }
    
    [class*="col-"] {
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    body {
        font-size: 14px;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.8s ease;
}

/* Additional mobile fixes */
@media (max-width: 576px) {
    .hero-content {
        padding: 0 20px;
    }
    
    .about-card {
        margin: 0 10px;
    }
    
    .section {
        padding: 30px 0;
    }
}