/* =====================================================
   THEME VARIABLES
===================================================== */

.theme-dark {
    --bg-gradient: linear-gradient(to right, #0f172a, #1e293b);
    --text-main: #ffffff;
    --text-light: #cbd5e1;
    --card-bg: #1e293b;
    --accent: #38bdf8;
}

.theme-light {
    --bg-gradient: #ffffff;
    --text-main: #1c1c1c;
    --text-light: #475569;
    --card-bg: #f1f5f9;
    --accent: #2563eb;
}

.theme-blue {
    --bg-gradient: linear-gradient(to right, #0c4a6e, #0369a1);
    --text-main: #ffffff;
    --text-light: #e0f2fe;
    --card-bg: #075985;
    --accent: #38bdf8;
}

/* =====================================================
   GLOBAL STYLES
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background: var(--bg-gradient);
    color: var(--text-main);
    transition: all 0.3s ease;
}

/* =====================================================
   HEADER / NAVBAR SECTION
===================================================== */

.navbar {
    position: fixed;
    width: 100%;
    background: var(--bg-gradient);
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 70px;
    z-index: 1000;
}

.logo {
    font-weight: 600;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 14px;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

/* =====================================================
   THEME BUTTON (FIXED)
===================================================== */

.theme-btn {
    background: transparent;  /* no button background */
    border: none;             /* no border */
    font-size: 22px;          /* size of the icon */
    cursor: pointer;
    color: var(--text-main);  /* dynamic based on theme */
    transition: 0.3s ease;
}

.theme-btn:hover {
    transform: rotate(180deg); /* nice hover effect */
    color: var(--accent);      /* accent color on hover */
}
/* =====================================================
   HERO SECTION
===================================================== */

.hero {
    min-height: 100vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 140px 80px 60px 80px;
    background: var(--bg-gradient);
}

.hero-left {
    max-width: 600px;
}

.welcome-text {
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 38px;
    line-height: 1.4;
    margin-bottom: 20px;
}

.highlight {
    color: var(--accent);
}

.hero-description {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn-primary {
    background-color: var(--accent);
    color: #000;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-primary:hover {
    opacity: 0.85;
}

.btn-secondary {
    border: 1px solid var(--text-main);
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-main);
    transition: 0.3s;
}

.btn-secondary:hover {
    background: var(--text-main);
    color: #000;
}

/* =====================================================
   PROFILE IMAGE
===================================================== */

.hero-right img {
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* =====================================================
   HERO MINI ICON SECTION
===================================================== */

.hero-mini {
    margin-top: 40px;
    display: flex;
    gap: 80px;
    flex-wrap: wrap;
}

.mini-block h5 {
    font-size: 13px;
    color: var(--accent);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.icon-links {
    display: flex;
    gap: 20px;
}

.icon-links i {
    font-size: 20px;
    color: var(--text-light);
    background: rgba(255,255,255,0.08);
    padding: 12px;
    border-radius: 10px;
    transition: 0.3s ease;
    cursor: pointer;
}

.icon-links i:hover {
    color: #fff;
    background: var(--accent);
    transform: translateY(-5px);
}

/* =====================================================
   ABOUT SECTION
===================================================== */
.about {
    padding: 80px 60px;
    background: var(--bg-gradient);
}

.about-container {
    display: flex;
    justify-content: space-between;
    align-items: center;   /* center card vertically */
    gap: 20px;
}

/* LEFT CONTENT */
.about-content {
    flex: 2.5;   /* balanced width */
}

.about-content h2 {
    font-size: 38px;
    margin-bottom: 15px;
}

.about-content p {
    font-size: 17px;
    text-wrap: balance;
    text-align: left;   /* not justify */
    line-height: 1.5;
    margin-bottom: 12px;
    color: var(--text-light);
}

.about-content strong {
    color: var(--accent);
}

/* RIGHT CARD */
.highlight-card {
    flex: 1;
    max-width: 350px;   /* increased width */
    width: 100%;
    background: var(--card-bg);
    padding: 25px;
    border-radius: 18px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    transition: 0.3s;
}

.highlight-card:hover {
    transform: translateY(-10px);
}

.highlight-card li {
    margin-bottom: 10px;
    padding-left: 10px;
    border-left: 3px solid var(--accent);
    list-style: none;
    white-space: nowrap;   /* keeps items in one line */
}

/* =====================================================
   EDUCATION SECTION
===================================================== */
/* =====================================================
   EDUCATION SECTION (CARD STYLE)
===================================================== */

.education {
    padding: 120px 80px;
    background: var(--bg-gradient);
    text-align: center;
}

.education-title {
    font-size: 42px;
    margin-bottom: 70px;
    color: var(--text-main);
    font-weight: 700;
}

.education-cards {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.education-card {
    background: var(--card-bg);
    padding: 40px;
    width: 400px;
    border-radius: 16px;
    text-align: left;
    transition: 0.3s ease;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.education-card:hover {
    transform: translateY(-10px);
}

.education-card h3 {
    margin-bottom: 15px;
    color: var(--accent);
}

.education-card .university {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-main);
}

.education-card .year {
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--accent);
}

.education-card .projects {
    font-size: 15px;
    color: var(--text-light);
}

/* =====================================================
   SKILLS SECTION
===================================================== */

.skills {
    padding: 120px 0;
    background: var(--bg-gradient);
    text-align: center;
}

.skills-title {
    font-size: 40px;
    margin-bottom: 60px;
    color: var(--text-main);
}

.skills-slider {
    overflow: hidden;
    width: 100%;
}

.skills-track {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: scrollSkills 20s linear infinite;
}

.skill-card {
    width: 160px;
    height: 180px;
    background: var(--card-bg);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.skill-card:hover {
    transform: translateY(-10px);
}

.skill-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.skill-card p {
    color: var(--text-main);
    font-weight: 600;
}

/* Animation */

@keyframes scrollSkills {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* =====================================================
   ACHIEVEMENTS SECTION
===================================================== */

.achievements {
    padding: 120px 80px;
    background: var(--bg-gradient);
    text-align: center;
}

.achievements-title {
    font-size: 40px;
    margin-bottom: 60px;
    color: var(--text-main);
}

/* GRID */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

/* CARD */
.achievement-card {
    background: var(--card-bg);
    padding: 25px 20px;
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    transition: 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-8px);
}

/* ICON */

.achievement-card img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 15px;
    background: white;       /* 🔥 FIX for dark theme */
    padding: 8px;
    border-radius: 10px;
}
/* TEXT */
.achievement-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--text-main);
}

.achievement-card p {
    font-size: 13px;
    margin-bottom: 5px;
    color: var(--text-light);
}

/* LINK */
.achievement-card a {
    display: inline-block;
    margin-top: 10px;
    text-decoration: none;
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
}

.achievement-card a:hover {
    text-decoration: underline;
}

/* MOBILE */
@media (max-width: 768px) {
    .achievements {
        padding: 80px 30px;
    }

    .achievement-card img {
        width: 50px;
        height: 50px;
    }
}


/* =====================================================
   PROJECTS SECTION
===================================================== */

.projects {
    padding: 120px 80px;
    background: var(--bg-gradient);
}

.projects-title {
    text-align: center;
    font-size: 40px;
    margin-bottom: 60px;
    color: var(--text-main);
}

.projects-slider {
    display: flex;
    gap: 40px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 20px;
}

.projects-slider::-webkit-scrollbar {
    height: 8px;
}

.projects-slider::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

.project-card {
    min-width: 350px;
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    transition: 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-content {
    padding: 25px;
}

.project-category {
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
}

.project-content h3 {
    margin: 10px 0;
    color: var(--text-main);
}

.project-content p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.tech-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.tech-tags span {
    background: var(--accent);
    color: #000;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 20px;
}

.project-links a {
    margin-right: 15px;
    font-size: 14px;
    color: var(--accent);
    text-decoration: none;
}

.project-links a:hover {
    text-decoration: underline;
}

/* =====================================================
   CERTIFICATIONS SECTION
===================================================== */

.certifications {
    padding: 120px 80px;
    background: var(--bg-gradient);
}

.certifications-title {
    text-align: center;
    font-size: 40px;
    margin-bottom: 70px;
    color: var(--text-main);
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

/* Card */

.cert-card {
    background: var(--card-bg);
    border-radius: 14px;
    overflow: hidden;
    transition: 0.3s ease;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.cert-card:hover {
    transform: translateY(-8px);
}

.cert-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: 0.3s ease;
}

.cert-card:hover img {
    transform: scale(1.05);
}

.cert-content {
    padding: 15px;
}

.cert-content h3 {
    font-size: 15px;
    margin-bottom: 5px;
    color: var(--text-main);
}

.cert-content p {
    font-size: 13px;
    color: var(--text-light);
}

.cert-year {
    font-size: 12px;
    color: var(--accent);
    display: block;
    margin-top: 5px;
}

.cert-tags {
    margin-top: 8px;
}

.cert-tags span {
    font-size: 11px;
    background: var(--accent);
    color: #000;
    padding: 4px 8px;
    border-radius: 12px;
    margin-right: 5px;
}

/* Responsive */

@media (max-width: 1200px) {
    .certifications-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .certifications-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   CONTACT SECTION
===================================================== */

/* ===== GLOBAL STYLES ===== */
.contact{
padding:100px 80px;
}

.contact-title{
text-align:center;
font-size:40px;
margin-bottom:60px;
}

/* LAYOUT */
.contact-container{
display:flex;
gap:60px;
align-items:flex-start;
}

/* LEFT SIDE */
.contact-info{
width:50%;
}

.contact-info h3{
color:#3dc4ff;
margin-bottom:15px;
}

.contact-info p{
margin-bottom:15px;
color:#d6d6d6;
}

.contact-details p{
margin-bottom:12px;
}

.contact-details i{
margin-right:10px;
color:#3dc4ff;
}

.contact-details a{
color:white;
text-decoration:none;
}

.contact-details a:hover{
color:#3dc4ff;
}

/* RIGHT CARD */
.contact-card-wrapper{
width:50%;
}

.contact-card{
background:white;
color:#333;
padding:30px;
border-radius:12px;
box-shadow:0 8px 25px rgba(0,0,0,0.2);
}

.contact-card h4{
margin-bottom:20px;
}

/* GRID SERVICES */
.contact-services{
display:grid;
grid-template-columns:repeat(2,1fr);
gap:15px;
}

.service-card{
background:#f4f6fb;
padding:15px;
border-radius:8px;
font-size:14px;
border-left:4px solid #3dc4ff;
transition:0.3s;
}

.service-card:hover{
transform:translateY(-4px);
box-shadow:0 5px 15px rgba(0,0,0,0.15);
}

/* MOBILE */
@media(max-width:900px){

.contact-container{
flex-direction:column;
}

.contact-info,
.contact-card-wrapper{
width:100%;
}

.contact-services{
grid-template-columns:1fr;
}

}

/* =====================================================
   FOOTER SECTION
===================================================== */

.footer {
    background: var(--card-bg);
    padding: 60px 80px 30px 80px;
    color: var(--text-main);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: wrap;
}

.footer-left h3 {
    margin-bottom: 10px;
    color: var(--accent);
}

.footer-left p {
    color: var(--text-light);
}

.footer-links h4,
.footer-social h4 {
    margin-bottom: 15px;
    color: var(--accent);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 14px;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--accent);
}

.social-icons a {
    font-size: 18px;
    margin-right: 15px;
    color: var(--text-main);
    transition: 0.3s;
}

.social-icons a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    font-size: 13px;
    color: var(--text-light);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
}

/* ===== NAVBAR BASE ===== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: #0f172a;
    color: white;
    position: relative;
    z-index: 1000;
}

.logo {
    font-size: 20px;
    font-weight: bold;
}

/* ===== NAV LINKS (DESKTOP) ===== */
.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-links li a {
    text-decoration: none;
    color: white;
    transition: 0.3s;
}

.nav-links li a:hover {
    color: #38bdf8;
}

/* ===== MENU TOGGLE ===== */
.menu-toggle {
    display: none;
    font-size: 26px;
    cursor: pointer;
}

/* ===== MOBILE DESIGN ===== */
@media (max-width: 900px) {

    .menu-toggle {
        display: block;
    }

    nav {
        width: 100%;
    }

    .nav-links {
        position: absolute;
        top: 60px;
        right: 20px;

        display: none;
        flex-direction: column;

        background: #0f172a;
        padding: 20px;
        border-radius: 12px;
        width: 220px;

        box-shadow: 0 10px 30px rgba(0,0,0,0.4);

        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links li a {
        display: block;
        padding: 10px;
        border-radius: 8px;
        text-align: center;
    }

    .nav-links li a:hover {
        background: rgba(255,255,255,0.1);
    }

    .nav-links.active {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */

@media (max-width: 900px) {
    .footer {
        padding: 50px 30px;
        text-align: center;
    }

    .footer-container {
        flex-direction: column;
        gap: 40px;
    }
}

/* =====================================================
   RESPONSIVE DESIGN
===================================================== */

@media (max-width: 900px) {

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 160px 30px 60px 30px;
    }

    .hero-right img {
        width: 220px;
        height: 220px;
        margin-top: 30px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-mini {
        flex-direction: column;
        gap: 30px;
    }

    .education {
        padding: 80px 30px;
    }

    .education-title {
        font-size: 32px;
    }

    .education-card {
        width: 100%;
    }

    .skill-card {
        width: 130px;
        height: 160px;
    }

    .projects {
        padding: 80px 30px;
    }

    .project-card {
        min-width: 280px;
    }

}
