
/* ===========================
   CSS VARIABLES
=========================== */

:root{

    /* Brand Colors */
    --primary:#2563EB;
    --secondary:#102e6e;
    --dark:#1c2e5a;
    --gray:#64748B;

    /* Theme Colors */
    --bg-color:#fffdfe;
    --bg-color1: #f9f9fa;
    --text-color:#191d44;
    --card-color:#ffffff;
    --header-bg:rgba(255,255,255,.95);
    --border-color:#e5e7eb;
    --text-bg-color: #f3f2f2;

    /* Fixed Colors */
    --white:#ffffff;

    --hero-gradient-start: #ffffff;
    --hero-gradient-end: #eef6ff;

    --shadow:0 10px 25px rgba(0,0,0,.08);
    --radius:10px;

}


body.dark-theme{

    --bg-color:#0f172a;
    --bg-color1:#16203a;
    --text-color1:#f8fafc;
    --text-color: #ecf2f8;
    --card-color:#1e293b;
    --header-bg:rgba(15,23,42,.95);
    --border-color:#334155;
    --hero-gradient-start: #0f172a;
    --hero-gradient-end: #1e293b;



     .hero {
    background:
        linear-gradient(
            135deg,
            var(--hero-gradient-start),
            var(--hero-gradient-end)
        );
}


.btn:hover{

    background:var(--secondary);
    color:var(--white);
    border:2px solid var(--white);
    

}

   .btn-outline:hover{
    color: var(--);
    border:2px solid var(--secondary);
}


.btn-outline{
    background:();
    color: var(--white);
     border:2px solid var(--white);
}


.skill-card li{

    color:var(--text-color);

    border-bottom:1px solid rgba(255, 255, 255, 0.05);

            }

@media (max-width:768px) { 

    .nav-links{
    background: rgba(8, 1, 19, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    width: 50%;
    align-items: center;
    
    }
    
        }

        
.contact-form input,
.contact-form textarea{
    background-color: var(--text-bg-color);
}

}



body {
    background: var(--bg-color);
    color: var(--text-color);
    font-family:'Poppins',sans-serif;
    line-height:1.7;
}

.service-card {
    background: var(--card-color);
}



/* ===========================
   RESET
=========================== */

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

/* ===========================
   GLOBAL
=========================== */



header {
    background: var(--white);
    box-shadow: var(--shadow);
    background:var(--header-bg);
}

header nav {
    display: flex;
    align-items: center;
    padding: 20px 0;
    justify-content: space-between;

}



img{

    max-width:100%;

    display:block;

}

.container{

    width:90%;

    max-width:1150px;

    margin:auto;

}

.logo {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--text-color);
    margin-left: 70px;
    
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 25px;
}

.nav-links {
  list-style-type: none; 
  margin: 0;
  padding: 0;
  display: flex;         
  gap: 20px;
margin-left: 300px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color .3s ease;
    position: relative;
    
}

.nav-links a.active{
    color: var(--primary);
    font-weight: 600;
    position: relative;
}

.nav-links a.active::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transition: width .3s ease;
}



section{
    scroll-margin-top: 10px;
}

.nav-links a:hover {
    color: var(--primary);
}

.container a {
    text-decoration: none;
}

.menu-toggle{

    display:none;

}


/* ===========================
   HERO SECTION
=========================== */

header {
    position: sticky;
    top: 0;
    z-index: 1000;
}



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




.hero{


    display:grid;

    align-items:center;

    padding: 7rem 0 7rem;

    background:
        url("../images/hero-bg.png");

}

.hero-image{

    display:flex;
    justify-content:center;

}

.image-frame{
    background:transparent;
    box-shadow: 0 10px 35px rgba(0,0,0,.15);
    width:360px;
    height:360px;
    border-radius:50%;
    overflow:hidden;
    border:8px solid rgba(255,255,255,.9);
}


.image-frame img{

    width:100%;
    height:100%;
    object-fit:cover;
    box-shadow:
0 8px 30px rgba(0,0,0,.12),
0 0 0 1px rgba(255,255,255,.7);

}



.hero-image img{

    transition:.4s;

}

.hero-image img:hover{

    transform:scale(1.03);

}


.hero-text h2{

    font-size:3.3rem;

    line-height:1.1;
    
    color: var(--text-color);

}

.hero-text h3{

    color: var(--text-color);

    margin:15px 0;

    font-size:1.5rem;

}

.hero-text p{

    color: var(--text-color);

    max-width:600px;

    margin-bottom:30px;

    font-weight: 600;

}



.hero-buttons {

     display:flex;
    gap:1rem;
    margin-top:2rem;

}

.btn-outline{
    display:inline-block;
    padding:15px 30px;
    border:2px solid var(--secondary);
    color:var(--secondary);
    border-radius:50px;
    background:var(--light);
    text-decoration:none;
    font-weight:600;

}

.btn{

    display:inline-block;

    background:var(--secondary);

    color:white;

    padding:15px 30px;

    border-radius:50px;

    text-decoration:none;

    font-weight:600;

    border:2px solid transparent;

}


.btn,
.btn-outline{

    transition:all .3s ease;

}


.btn:hover{

    background:var(--light);
    color:var(--secondary);
    border:2px solid var(--secondary);
    

}


.btn-outline:hover{
    background:var(--secondary);
    color:white;
}




/* ==========================
   SERVICES SECTION
========================== */

.projects{

    padding:6rem 0;

    background:var(--bg-color);

}

.services{

    padding:6rem 0;

    background: var(--bg-color1);

}


.services-content{

    text-align:center;

}

.services-content h2{

    font-size:2.2rem;

    margin-bottom:1rem;

    margin-top:2rem;
    color: var(--text-color);


}

.services-header > p{

    color: var(--text-color);

    max-width:650px;

    margin:0 auto;
    margin-bottom:3rem;
    

}

.services-header h2{

    margin-bottom:.8rem;
   color: var(--text-color);
}

.services-grid {
    display: grid;
    grid-template-columns:repeat(2,1fr);
    gap:2rem;
    align-items:stretch;
}

.card{

    background:var(--card-color);

    padding:2rem;

    border-radius:var(--radius);

    box-shadow:var(--shadow);

    text-align:left;

    transition:.3s;
    flex-direction:column;

}



.service-icon{

    font-size:2.5rem;

    margin-bottom:1rem;

    transition:transform .3s ease;
    

}

.card:hover .service-icon{

    transform:scale(1.1);

}



.card h3{

    margin-bottom:.8rem;
    color: var(--text-color);

}

.card p{

    color:var(--text-color);

}



/* ==========================
   PROJECTS SECTION
========================== */

.projects{

    padding:6rem 0;

    background:var(--bg-color);

}


.project-content{

    padding:2rem;

    display:flex;

    flex-direction:column;

    flex:1;


}

.project-content h3{

    margin-bottom:1rem;

}

.project-content p{

    color:var(--text-color);

    margin-bottom:1.5rem;

}




.projects-header{

    text-align:center;

    margin-bottom:4rem;

}

.projects-header h2{

    font-size:2.2rem;

    margin-bottom:1rem;

    color:var(--text-color);

}

.projects-header p{

    color:var(--text-color);

    max-width:650px;

    margin:auto;

}

.projects-grid{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:2rem;

    align-items:stretch;

}


.project-card{

    display:flex;

    flex-direction:column;

    background:var(--card-color);

    border-radius:var(--radius);

    overflow:hidden;

    box-shadow:var(--shadow);

    transition:
        transform .3s ease,
        box-shadow .3s ease;

}

.project-card:hover{

    transform: translateY(-5px);

}


.project-card img{

    width:100%;

    height:220px;

    object-fit:cover;
    

}


.project-tags{

    display:flex;

    flex-wrap:wrap;

    gap:.75rem;

    margin-bottom:2rem;

}

.project-tags span{

    background:#EAF2FF;

    color:var(--secondary);

    padding: .5rem 1rem;

    gap: 1rem;

    border-radius:50px;

    font-size:.85rem;

    font-weight:600;

    transition:.3s ease;

}

.project-links{

    display:flex;

    gap:1rem;

    margin-top:auto;

}

.project-image{

    overflow:hidden;

}


.project-links .btn,
.project-links .btn-outline{

    min-width:140px;
    text-align:center;

}


/*----------HOVER EFFECTS--------*/
.project-image img{

    width:100%;
    height:220px;

    object-fit:cover;

    transition:transform .4s ease;

}

.project-card:hover .project-image img{

    transform:scale(1.05);

}

.project-card:hover{

    transform:translateY(-8px);

    box-shadow:
        0 18px 45px rgba(0,0,0,.12);

}

.project-tags span:hover{

    background:var(--primary);
    color:var(--white);

    transform:translateY(-2px);

}


/* ==========================
        ABOUT SECTION
========================== */

.about{

    padding:6rem 0;

    background:var(--bg-color1);

}

.about-content{

    display:grid;

    grid-template-columns:1fr 1.3fr;

    gap:4rem;

    align-items:center;

}

.about-image{

    display:flex;

    justify-content:center;

}

.about-text h2{

    font-size:2.2rem;

    margin-bottom:1.5rem;


}

.about-text p{

    color:var(--text-color);

    margin-bottom:1.5rem;

    line-height:1.8;

}

.about-list{

    list-style:none;

    margin:2rem 0;

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:1rem;

}

.about-list li{

    display:flex;

    align-items:center;

    gap:.6rem;

    font-weight:500;

}

.about-text{

    border-left:4px solid var(--gray);

    padding-left:2rem;

}

.about-quote{

    font-style: italic;

    color: var(--primary);

    font-weight: 500;

    margin: 2rem 0;

}


/* ==========================
        SKILLS
========================== */

.skills{

    padding:6rem 0;

    background:var(--bg-color);

}

.skills-header{

    text-align:center;

    margin-bottom:4rem;

}

.skills-header h2{

    font-size:2.2rem;

    margin-bottom:1rem;

    color:var(--text-color);

}

.skills-header p{

    color:var(--text-color);

    max-width:650px;

    margin:auto;

}

.skills-grid{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:2rem;

}

.skill-card{

    background:var(--card-color);

    padding:2rem;

    border-radius:var(--radius);

    box-shadow:var(--shadow);

    transition:.3s;

}

.skill-card:hover{


    transform: translateY(-5px);

}

.skill-card h3{

    margin-bottom:1rem;
    color:var(--text-color);
}

.skill-card ul{

    list-style:none;

    padding:0;

}

.skill-card li{

    padding:.6rem 0;

    color:var(--gray);

    border-bottom:1px solid rgba(0,0,0,.05);

}

.skill-card li::before{

    content:"✓";

    color:var(--primary);

    margin-right:.6rem;

    font-weight:bold;

}



/* ==========================
        CONTACT
========================== */


.contact{

    padding:6rem 0;

    background:var(--bg-color1);

}

.contact-header{

    text-align:center;

    margin-bottom:4rem;

}

.contact-header h2{

    font-size:2.2rem;

    margin-bottom:1rem;


}

.contact-header p{

    color:var(--text-color);

    max-width:650px;

    margin:auto;

}

.contact-content{

    display:grid;

    grid-template-columns:1fr 1.3fr;

    gap:4rem;

    align-items:start;

}

.contact-info h3{

    margin-bottom:1rem;
  

}

.contact-info p{

    margin-bottom:1rem;

    color: var(--text-color)

}

.contact-form{

    display:flex;

    flex-direction:column;

    gap:1.5rem;

}

.contact-form input,
.contact-form textarea{

    width:100%;

    padding:1rem;

    border:1px solid #ddd;

    border-radius:var(--radius);
    background-color: #fff;

    font-size:1rem;

    outline:none;

    transition:.3s;

}

.contact-form input:focus,
.contact-form textarea:focus{

    border-color:var(--primary);

    box-shadow:0 0 0 3px rgba(52,152,219,.15);

}

.contact-form .btn{

    width:fit-content;

}


.contact-form{

    background:var(--bg-color);

    padding:2rem;

    border-radius:var(--radius);

    box-shadow:var(--shadow);

}

.contact-info a{

    display:block;

    margin-bottom:1rem;

    color:var(--text-color);
    text-decoration:none;

}

.contact-info{

    display:flex;
    flex-direction:column;
    gap:1rem;

}

.contact-item{

    margin-bottom:1.2rem;

}



/*--------HOVER EFFECT------*/
.contact-info a{

    transition:.3s ease;

}

.contact-info a:hover{

    color:var(--primary);

}


/* ==========================
        FOOTER
========================== */

.footer{

    background:#111827;

    color:#fff;

    padding:4rem 0 1.5rem;

}

.footer-content{

    display:grid;

    grid-template-columns:
    2fr 1fr 1fr;
    
    gap:3rem;

}

.footer h3{

    margin-bottom:1rem;

}

.footer p{

    color:#cbd5e1;

}

.footer-links,
.footer-social{

    display:flex;

    flex-direction:column;

    gap:.8rem;

}

.footer a{

    color:#cbd5e1;

    text-decoration:none;

    transition:.3s ease;

}

.footer a:hover{

    color:var(--primary);

}

.footer-bottom{

    text-align:center;

    margin-top:3rem;

    padding-top:2rem;

    border-top:1px solid rgba(255,255,255,.1);

}


/*-----------FINAL TOUCH--------------*/
.btn,
.btn-outline{

    cursor:pointer;

}

html{

    scroll-behavior:smooth;

}

::selection{

    background:var(--primary);

    color:white;

}

a:focus,
button:focus{

    outline:2px solid var(--primary);

    outline-offset:4px;

}







/* --------MEDIA QUERIES---------- */



/* ----TABLET---- */
@media (max-width: 992px){

.hero-content{

    grid-template-columns:1fr;

    text-align:center;

    gap:3rem;

}

.hero-image{

    display:flex;

    justify-content:center;

}

.hero-text{

    display:flex;

    flex-direction:column;

    align-items:center;

}

.hero-text p{

    max-width:650px;

}

}

/* -----------MOBILE--------- */



@media (max-width:768px){

        nav{

    position:relative;

}

        .menu-toggle{

    display:block;
    background:none;
    border:none;

    font-size:2rem;

    cursor:pointer;

    color:var(--text-color);

    }



    .nav-links.active{

    display:flex;
    flex-direction:column;

}



.nav-links{

    position:absolute;
    top:100%;
    right:0px;
    width:100%;
    flex-direction:column;
    display:none;
    /* background:transparent; */
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    max-width: 50%;
    text-align: center;

}

/***HERO SECTION***/
    .hero-content{

        grid-template-columns:1fr;

        text-align:center;

        gap:3rem;

    }



     .hero-content h3 {
        font-size: 1.3rem;
    }

    .hero-text h2{

    font-size: 2.2rem;

    line-height:1.1;
    

}

    .image-frame{

        width:240px;
        height:240px;

    }

    .hero-buttons{

        flex-direction:column;

        align-items:center;

        gap:15px;

    }

    .hero-buttons .btn,
    .hero-buttons .btn-outline{

        width:100%;
        max-width:240px;

    }

    /*---------SERVICES SECTION-------*/

    .services-grid{

        grid-template-columns:1fr;

        gap:1.5rem;

    }

    .card{

        padding:1.5rem;

    }

    .service-icon{

        font-size:2rem;

    }

    .services-content h2{

        font-size:1.8rem;

    }

     .hero{
        padding-top:5rem;
    }

/*---------PROJECTS SECTION-------*/
    .projects-grid{

    grid-template-columns:1fr;
    gap:1.5rem;

}


.project-links{

    flex-direction:column;

    align-items:center;

}

.project-links .btn,
.project-links .btn-outline{

    width:100%;
    max-width:220px;

    text-align:center;

}


.project-tags{

    display:flex;
    flex-wrap:wrap;
    gap:.75rem;

}

/*---------------ABOUT SECTION------------*/
.about-content{

    grid-template-columns:1fr;

    text-align:center;

    gap:3rem;

}

.about-image{

    justify-content:center;

}

.about-text p{

    max-width:600px;

    margin:0 auto 1.5rem;

}

.about .btn{

    width:100%;
    max-width:240px;

}

.about-text{

    border-left:none;

    padding-left:0;

}

/*---------------SKILLS SECTION------------*/
.skills-grid{
    grid-template-columns: 1fr;
    gap: 1.5rem;
}


/*---------------CONTACT SECTION------------*/

.contact-content{

    grid-template-columns:1fr;

    text-align:center;

}

.contact-form .btn{

    width:100%;

}


/*---------------FOOTER SECTION---------------*/


.footer-content{

    grid-template-columns:1fr;

    text-align:center;

}

.footer-links,
.footer-social{

    align-items:center;

}


}


/* Animation for reveal effect */

.reveal{
    opacity: 0;
    transform: translateY(80px);
    transition: opacity .6s ease,
                transform .6s ease;
}

.reveal.show{
    opacity: 1;
    transform: translateY(0);
}

.service-card:nth-child(1){
    transition-delay: 0s;
}

.service-card:nth-child(2){
    transition-delay: .15s;
}

.service-card:nth-child(3){
    transition-delay: .30s;
}

.service-card:nth-child(4){
    transition-delay: .45s;
}

.service-card:nth-child(5){
    transition-delay: .60s;
}



.project-card:nth-child(1){
    transition-delay: 0s;
}
.project-card:nth-child(2){
    transition-delay: .15s;
}
.project-card:nth-child(3){
    transition-delay: .30s;
}
.project-card:nth-child(4){
    transition-delay: .45s;
}


.cursor{
    animation: blink .8s infinite;
}

@keyframes blink{

    50%{
        opacity: 0;
    }

}


/**********ERROR MANAGEMENT*********/
.error-message {
    display: block;
    color: #dc2626;
    font-size: 0.85rem;
    margin-top: 5px;
    min-height: 15px;
}

.contact-form input.error,
.contact-form textarea.error {
    border: 1px solid #dc2626;
}

.success-message {
    display: block;
    color: #16a34a;
    margin-top: 10px;
    min-height: 15px;
}
