
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color:var(--main-bg); 
    transition:  0.3s, color 0.3s;
}

/* Header & Navbar */
header {
    background: var(--secondary-color); 
    color: var(--text-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

body.dark-mode header {
    background: #1e1e1e; 
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color:whitesmoke;
    text-decoration: none;
    transition: color 0.3s
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-links li a {
    color:whitesmoke;
    text-decoration: none;
    margin-left: 20px;
    padding: 5px 10px;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: blue;
}

/*  Button Style */
#theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 20px;
    transition: color 0.3s;
    outline: none;
}

body.dark-mode #theme-toggle {
    color: var(--primary-color);
}


/* Sections Styling */
section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    border-bottom: 3px solid var(--primary-color);
    color: var(--secondary-color);
    display: inline-block;
    padding-bottom: 5px;
}
p {
    color: var(--text-color);
}

/* Hero Section */
.hero {
    background: var(--light-bg);
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1rem;
    transition: 0.3s;
}

.cta-button:hover {
    background: #2980b9; 
}

/* Skills Section */
.skills-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.skill-item {
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    box-shadow: 0 2px 5px var(--shadow-color);
}

/* Portfolio Section */
.portfolio {
    background: var(--light-bg);
}
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px var(--shadow-color);
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px var(--shadow-color);
}

.project-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.project-card a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    display: block;
}

/* Contact Section */
.contact-links a {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin: 0 15px;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-links a:hover {
    color: var(--primary-color);
}

/* Footer */
footer {
    background: #1e1e1e;
    color: white;
    text-align: center;
    padding: 20px 0;
}

:root {
    --primary-color: #3498db;
    --secondary-color: #2074c9cb; 
    --accent-color:#3498db ; 
    --text-color: #333;
    --light-bg: #f4f4f4; 
    --main-bg: white; 
    --card-bg: white;
    --shadow-color: rgba(0,0,0,0.1);
}

/* --- Dark Mode  --- */
body.dark-mode {
    --primary-color: #5d9cec;    
    --secondary-color: #ecf0f1;  
    --accent-color:whitesmoke;     
    --text-color: #bdc3c7;       
    --light-bg: #1e1e1e;         
    --main-bg: #121212;          
    --card-bg: #222222;
    --shadow-color: rgba(255, 255, 255, 0.1);
}

