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

/* Disable text selection and right-click */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* Disable image dragging */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

/* Disable highlighting */
::selection {
    background: transparent;
}

::-moz-selection {
    background: transparent;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a4190);
}

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

/* Glassmorphism effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
}

/* Floating animation */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(1deg); }
    66% { transform: translateY(5px) rotate(-1deg); }
}

/* Pulse animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo h2 {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 10px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover {
    color: #667eea;
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section - Developer Style */
.hero {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    color: white;
    padding: 120px 0 80px;
    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: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

/* Matrix rain effect */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(90deg, transparent 98%, rgba(0, 255, 0, 0.03) 100%),
        linear-gradient(180deg, transparent 98%, rgba(0, 255, 0, 0.03) 100%);
    background-size: 20px 20px;
    animation: matrix 10s linear infinite;
    opacity: 0.1;
}

@keyframes matrix {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    animation: slideInLeft 1s ease-out;
}

/* Typing Animation */
.typing-container {
    margin-bottom: 30px;
    font-family: 'Fira Code', 'Courier New', monospace;
}

.typing-prefix, .typing-suffix {
    color: #7c3aed;
    font-size: 1.2rem;
}

.typing-text {
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.highlight {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.5)); }
    to { filter: drop-shadow(0 0 20px rgba(245, 158, 11, 0.8)); }
}

/* Code Block */
.code-block {
    background: rgba(15, 15, 35, 0.9);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    margin: 30px 0;
    border: 1px solid rgba(124, 58, 237, 0.3);
    font-family: 'Fira Code', 'Courier New', monospace;
}

.code-header {
    background: rgba(30, 30, 60, 0.8);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(124, 58, 237, 0.2);
}

.code-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27ca3f; }

.code-title {
    color: #a78bfa;
    font-size: 0.9rem;
    font-weight: 500;
}

.code-content {
    padding: 20px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.code-line {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    animation: typeIn 0.5s ease-out;
}

.code-line:nth-child(1) { animation-delay: 0.5s; animation-fill-mode: both; opacity: 0; }
.code-line:nth-child(2) { animation-delay: 1s; animation-fill-mode: both; opacity: 0; }
.code-line:nth-child(3) { animation-delay: 1.5s; animation-fill-mode: both; opacity: 0; }
.code-line:nth-child(4) { animation-delay: 2s; animation-fill-mode: both; opacity: 0; }
.code-line:nth-child(5) { animation-delay: 2.5s; animation-fill-mode: both; opacity: 0; }
.code-line:nth-child(6) { animation-delay: 3s; animation-fill-mode: both; opacity: 0; }

@keyframes typeIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.line-number {
    color: #6b7280;
    margin-right: 20px;
    min-width: 20px;
    text-align: right;
}

.keyword { color: #7c3aed; }
.variable { color: #06b6d4; }
.property { color: #10b981; }
.string { color: #f59e0b; }

/* Terminal Window */
.terminal-window {
    background: rgba(15, 15, 35, 0.95);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0,0,0,0.4);
    border: 1px solid rgba(124, 58, 237, 0.3);
    font-family: 'Fira Code', 'Courier New', monospace;
    animation: slideInRight 1s ease-out 0.3s both;
}

.terminal-header {
    background: rgba(30, 30, 60, 0.8);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(124, 58, 237, 0.2);
}

.terminal-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.close { background: #ff5f56; }
.control.minimize { background: #ffbd2e; }
.control.maximize { background: #27ca3f; }

.terminal-title {
    color: #a78bfa;
    font-size: 0.9rem;
    font-weight: 500;
}

.terminal-body {
    padding: 20px;
    color: #00ff00;
    font-size: 0.9rem;
    line-height: 1.8;
}

.terminal-line {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.prompt {
    color: #7c3aed;
    margin-right: 8px;
}

.command {
    color: #06b6d4;
}

.terminal-output {
    margin-bottom: 15px;
    margin-left: 20px;
    color: #10b981;
}

.file {
    display: inline-block;
    margin-right: 15px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.file.python { background: rgba(52, 168, 83, 0.2); color: #34a853; }
.file.django { background: rgba(9, 46, 32, 0.2); color: #092e20; }
.file.php { background: rgba(119, 123, 180, 0.2); color: #777bb4; }
.file.laravel { background: rgba(255, 45, 32, 0.2); color: #ff2d20; }
.file.js { background: rgba(247, 223, 30, 0.2); color: #f7df1e; }
.file.linux { background: rgba(255, 204, 0, 0.2); color: #ffcc00; }

.cursor {
    animation: blink 1s infinite;
    color: #00ff00;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Floating Code Snippets */
.floating-code {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.code-snippet {
    position: absolute;
    background: rgba(15, 15, 35, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 8px;
    padding: 10px 15px;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.8rem;
    color: #a78bfa;
    animation: floatCode 6s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.code-snippet i {
    margin-right: 8px;
    font-size: 1rem;
}

.code-snippet:nth-child(1) {
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.code-snippet:nth-child(2) {
    top: 30%;
    right: -15%;
    animation-delay: 1.5s;
}

.code-snippet:nth-child(3) {
    bottom: 30%;
    left: -5%;
    animation-delay: 3s;
}

.code-snippet:nth-child(4) {
    bottom: 10%;
    right: -10%;
    animation-delay: 4.5s;
}

@keyframes floatCode {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.7;
    }
    25% {
        transform: translateY(-20px) translateX(10px) rotate(1deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-10px) translateX(-5px) rotate(-0.5deg);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-30px) translateX(15px) rotate(1.5deg);
        opacity: 0.9;
    }
}

.hero-buttons {
    display: flex;
    gap: 20px;
    animation: slideInUp 1s ease-out 0.5s both;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn {
    padding: 15px 35px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    font-family: 'Fira Code', 'Courier New', monospace;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #7c3aed, #3b82f6);
    color: white;
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3);
    border: 1px solid rgba(124, 58, 237, 0.5);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #6d28d9, #2563eb);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(124, 58, 237, 0.4);
}

.btn-secondary {
    background: rgba(15, 15, 35, 0.8);
    color: #00ff00;
    border: 2px solid #00ff00;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(0, 255, 0, 0.1);
    border-color: #00ff00;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 255, 0, 0.2);
    color: #00ff00;
}

/* Profile Card */
.hero-image {
    animation: slideInRight 1s ease-out 0.3s both;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.profile-card {
    position: relative;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 30px;
    padding: 50px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-10px) rotateY(5deg);
    box-shadow: 0 30px 80px rgba(0,0,0,0.2);
}

.profile-img i {
    font-size: 8rem;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    animation: pulse 3s ease-in-out infinite;
}

.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-icons i {
    position: absolute;
    font-size: 2.5rem;
    color: rgba(255,255,255,0.6);
    animation: float 4s ease-in-out infinite;
    transition: all 0.3s ease;
}

.floating-icons i:hover {
    color: rgba(255,255,255,0.9);
    transform: scale(1.2);
}

.floating-icons i:nth-child(1) { 
    top: 15%; 
    left: 5%; 
    animation-delay: 0s; 
    color: #3776ab; /* Python blue */
}
.floating-icons i:nth-child(2) { 
    top: 25%; 
    right: 10%; 
    animation-delay: 0.8s; 
    color: #f7df1e; /* JavaScript yellow */
}
.floating-icons i:nth-child(3) { 
    bottom: 25%; 
    left: 15%; 
    animation-delay: 1.6s; 
    color: #777bb4; /* PHP purple */
}
.floating-icons i:nth-child(4) { 
    bottom: 15%; 
    right: 5%; 
    animation-delay: 2.4s; 
    color: #fcc624; /* Linux yellow */
}

/* About Section */
.about {
    padding: 100px 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 49%, rgba(102, 126, 234, 0.05) 50%, transparent 51%);
    pointer-events: none;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

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

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.about-text {
    animation: fadeInLeft 1s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.about-text h3 {
    font-size: 2rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.8;
    color: #555;
}

.about-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.info-item i {
    color: #667eea;
    font-size: 1.5rem;
    width: 30px;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 25px;
    animation: fadeInRight 1s ease-out;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.stat-item {
    text-align: center;
    padding: 35px 25px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
    opacity: 0;
}

.stat-item:hover::before {
    opacity: 1;
    top: -100%;
    left: -100%;
}

.stat-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 45px rgba(102, 126, 234, 0.4);
}

.stat-item h3 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.stat-item p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Skills Section */
.skills {
    padding: 100px 0;
    background: #f8f9fa;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.skill-category {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.skill-category h3 {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-category h3 i {
    color: #3498db;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.skill-item i {
    font-size: 1.5rem;
    color: #3498db;
    width: 30px;
}

.skill-item span {
    font-weight: 500;
    min-width: 100px;
}

.skill-level {
    flex: 1;
    height: 8px;
    background: #ecf0f1;
    border-radius: 4px;
    overflow: hidden;
}

.skill-bar {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 4px;
    transition: width 2s ease;
}

/* Projects Section */
.projects {
    padding: 100px 0;
    background: white;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.project-image {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 60px;
    text-align: center;
}

.project-image i {
    font-size: 4rem;
}

.project-content {
    padding: 30px;
}

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

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

.project-tech {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.project-tech span {
    background: #ecf0f1;
    color: #2c3e50;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 15px;
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-outline {
    background: transparent;
    color: #3498db;
    border: 2px solid #3498db;
}

.btn-outline:hover {
    background: #3498db;
    color: white;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: #f8f9fa;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.contact-info p {
    margin-bottom: 40px;
    line-height: 1.8;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-item i {
    font-size: 1.5rem;
    color: #3498db;
    width: 40px;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #2c3e50;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #3498db;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-container {
        gap: 40px;
    }
    
    .code-block {
        font-size: 0.8rem;
    }
    
    .terminal-window {
        font-size: 0.8rem;
    }
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .hero-content {
        order: 2;
    }
    
    .hero-image {
        order: 1;
    }
    
    .typing-text {
        font-size: 2.5rem;
    }
    
    .code-block {
        max-width: 500px;
        margin: 30px auto;
    }
    
    .terminal-window {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-info {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        z-index: 1001;
    }
    
    .hamburger span {
        width: 25px;
        height: 3px;
        background: #333;
        margin: 3px 0;
        transition: 0.3s;
        border-radius: 2px;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
        z-index: 1000;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .nav-menu a {
        font-size: 1.1rem;
        padding: 15px 20px;
        display: block;
        border-radius: 8px;
        margin: 0 20px;
    }
    
    .nav-menu a:hover {
        background: rgba(124, 58, 237, 0.1);
    }
    
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }
    
    .hero-container {
        padding: 0 15px;
        gap: 30px;
    }
    
    .typing-text {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .typing-prefix, .typing-suffix {
        font-size: 1rem;
    }
    
    .code-block {
        max-width: 100%;
        margin: 20px 0;
    }
    
    .code-content {
        padding: 15px;
        font-size: 0.75rem;
    }
    
    .terminal-window {
        max-width: 100%;
    }
    
    .terminal-body {
        padding: 15px;
        font-size: 0.75rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 12px 25px;
        font-size: 0.8rem;
    }
    
    .floating-code {
        display: none; /* Hide floating code on mobile */
    }
    
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }
    
    .about, .skills, .projects, .contact {
        padding: 60px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .about-stats {
        flex-direction: row;
        gap: 15px;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .stat-item {
        min-width: 120px;
        padding: 25px 15px;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .skill-category {
        padding: 25px 20px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .project-card {
        margin: 0 10px;
    }
    
    .contact-content {
        gap: 30px;
    }
    
    .contact-form {
        padding: 25px 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .print-button {
        bottom: 20px;
        right: 15px;
    }
    
    .btn-print {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-logo h2 {
        font-size: 1.5rem;
    }
    
    .hero-container {
        padding: 0 10px;
    }
    
    .typing-text {
        font-size: 1.8rem;
    }
    
    .code-block, .terminal-window {
        border-radius: 8px;
        margin: 15px 0;
    }
    
    .code-content, .terminal-body {
        padding: 12px;
        font-size: 0.7rem;
    }
    
    .code-line {
        margin-bottom: 6px;
    }
    
    .line-number {
        margin-right: 10px;
        min-width: 15px;
    }
    
    .terminal-header, .code-header {
        padding: 10px 15px;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .about-text h3 {
        font-size: 1.5rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    .info-item {
        padding: 12px;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .info-item i {
        font-size: 1.2rem;
    }
    
    .stat-item {
        min-width: 100px;
        padding: 20px 10px;
    }
    
    .stat-item h3 {
        font-size: 1.8rem;
    }
    
    .stat-item p {
        font-size: 0.9rem;
    }
    
    .skill-category {
        padding: 20px 15px;
    }
    
    .skill-category h3 {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
    
    .skill-item {
        gap: 10px;
    }
    
    .skill-name {
        font-size: 0.8rem;
        min-width: 70px;
    }
    
    .project-content {
        padding: 20px 15px;
    }
    
    .project-content h3 {
        font-size: 1.1rem;
    }
    
    .project-content p {
        font-size: 0.9rem;
    }
    
    .project-tech {
        gap: 8px;
    }
    
    .project-tech span {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
    
    .contact-info h3 {
        font-size: 1.5rem;
    }
    
    .contact-methods {
        gap: 20px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .contact-form {
        padding: 20px 15px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .btn-print {
        padding: 10px 15px;
        font-size: 0.8rem;
    }
    
    .btn-print i {
        font-size: 0.9rem;
    }
}

/* Landscape orientation for tablets */
@media (max-width: 1024px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }
    
    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .typing-text {
        font-size: 2.2rem;
    }
    
    .code-block, .terminal-window {
        max-width: 400px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .code-content, .terminal-body {
        font-size: 0.85rem;
    }
    
    .btn {
        font-size: 0.85rem;
    }
}

/* Print styles for mobile */
@media print {
    .hamburger, .nav-menu, .hero-buttons, .contact-form, .footer, .print-button {
        display: none !important;
    }
    
    .hero {
        padding: 20px 0;
        min-height: auto;
        background: white !important;
        color: #333 !important;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .code-block, .terminal-window {
        background: #f8f9fa !important;
        border: 1px solid #ddd !important;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .skills, .projects, .contact, .about {
        padding: 30px 0;
    }
}