
/* CSS Variables for Theming */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-light: #ecf0f1;
    --text-dark: #2c3e50;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a1a;
    --transition-speed: 0.3s;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

body.dark-mode {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

/* Navigation */
.navbar {
    transition: all var(--transition-speed) ease;
    padding: 1rem 0;
    background-color: rgba(44, 62, 80, 0.9);
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    background-color: rgba(44, 62, 80, 0.98) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--secondary-color) !important;
}

.nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color var(--transition-speed) ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width var(--transition-speed) ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color) !important;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 1rem;
    transition: color var(--transition-speed);
}

.dark-mode-toggle:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero .lead {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.profile-img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 5px solid rgba(255,255,255,0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transition: transform var(--transition-speed) ease;
}

.profile-img:hover {
    transform: scale(1.05);
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-title::after {
    content: '';
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
}

/* About Section */
.about {
    background: var(--bg-light);
}

.skill-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    margin-bottom: 2rem;
    height: 100%;
}

.skill-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.skill-item i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Portfolio Section */
.portfolio-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: 2px solid var(--secondary-color);
    color: var(--text-dark);
    padding: 0.5rem 1.5rem;
    margin: 0.25rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--secondary-color);
    color: white;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform var(--transition-speed) ease;
    margin-bottom: 2rem;
    height: 100%;
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(52, 152, 219, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay .btn {
    margin: 0 0.5rem;
}

/* Contact Section */
.contact {
    background: var(--primary-color);
    color: var(--text-light);
}

.contact .section-title h2,
.contact .section-title::after {
    color: var(--text-light);
    background: var(--secondary-color);
}

.contact-info {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.contact-info i {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-right: 1rem;
}

.form-control {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-light);
    border-radius: 5px;
}

.form-control:focus {
    background: rgba(255,255,255,0.1);
    border-color: var(--secondary-color);
    color: var(--text-light);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.form-control::placeholder {
    color: rgba(255,255,255,0.7);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--text-light);
    padding: 2rem 0;
    text-align: center;
}

.social-links a {
    color: var(--text-light);
    font-size: 1.5rem;
    margin: 0 1rem;
    transition: color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.social-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Buttons */
.btn-primary {
    background: var(--secondary-color);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
}

.btn-primary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-outline-light {
    border: 2px solid var(--text-light);
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
}

.btn-outline-light:hover {
    background: var(--text-light);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Notification Toast */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    background: var(--secondary-color);
    color: white;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transform: translateY(100px);
    opacity: 0;
    transition: all var(--transition-speed) ease;
    z-index: 1000;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .lead {
        font-size: 1.1rem;
    }
    
    .profile-img {
        width: 200px;
        height: 200px;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .portfolio-filter {
        margin-bottom: 1rem;
    }
    
    .filter-btn {
        font-size: 0.9rem;
        padding: 0.4rem 1rem;
    }
    .btn-outline-light {
        margin-top: 10px;
    }
    .mb-4{
        margin-top: 10px;
    }
    .col-md-6{
        margin-top: 10px;
    }
    .col-lg-6{
        margin-top: 10px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
.typing-effect {
    border-right: 2px solid var(--text-light);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { border-color: transparent; }
    51%, 100% { border-color: var(--text-light); }
}

/* Dark mode styles */
body.dark-mode .about {
    background-color: #2c2c2c;
}

body.dark-mode .skill-item {
    background-color: #333;
    color: var(--text-light);
}

body.dark-mode .section-title h2 {
    color: var(--text-light);
}

body.dark-mode .section-title::after {
    background: var(--secondary-color);
}

body.dark-mode .portfolio-item {
    background-color: #333;
}

body.dark-mode .portfolio-item h5 {
    color: var(--text-light);
}

body.dark-mode .portfolio-item p {
    color: #aaa;
}
