/*
Theme Name: CreaGraphix Theme
Theme URI: https://creagraphix.net
Author: Manish Kumar
Description: A custom WordPress theme for Crea Graphix.
Version: 1.0
Text Domain: creagraphix-theme
*/

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body */
body {
    font-family: 'Poppins', sans-serif;
    color: #222;
    background: #f8f9fa;
    line-height: 1.6;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

/* Logo */
.site-logo img {
    max-height: 80px;
    width: auto;
}

/* Navigation */
.main-navigation {
    display: flex;
}

#primary-menu {
    list-style: none;
    display: flex;
    gap: 25px;
}

#primary-menu li a {
    color: #111;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

#primary-menu li a:hover {
    color: #ffcc00;
}

#primary-menu li a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffcc00;
    transition: width 0.3s;
}

#primary-menu li a:hover:after {
    width: 100%;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger-box {
    width: 30px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    width: 100%;
    height: 2px;
    background-color: #111;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: background-color 0.2s;
}

.hamburger-inner:before,
.hamburger-inner:after {
    content: '';
    width: 100%;
    height: 2px;
    background-color: #111;
    position: absolute;
    left: 0;
    transition: transform 0.3s;
}

.hamburger-inner:before {
    top: -8px;
}

.hamburger-inner:after {
    bottom: -8px;
}

/* Footer */
footer {
    background: #222;
    color: #ccc;
    padding: 50px 0 20px;
}

.footer-content {
    margin-bottom: 30px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-widget h3,
.footer-widget h4 {
    color: #fff;
    margin-bottom: 15px;
}

.footer-widget p {
    margin-bottom: 15px;
}

#footer-menu {
    list-style: none;
}

#footer-menu li {
    margin-bottom: 10px;
}

#footer-menu li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

#footer-menu li a:hover {
    color: #ffcc00;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #ccc;
    font-size: 20px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #ffcc00;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #fff;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s;
        padding: 80px 20px 20px;
        z-index: 99;
        flex-direction: column;
    }
    
    .main-navigation.active {
        right: 0;
    }
    
    #primary-menu {
        flex-direction: column;
        gap: 15px;
    }
    
    .menu-toggle.active .hamburger-inner {
        background-color: transparent;
    }
    
    .menu-toggle.active .hamburger-inner:before {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active .hamburger-inner:after {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Animations */
@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Main content */
main {
    min-height: 60vh;
    padding: 40px 0;
}